![]() |
VOOZH | about |
dotnet add package BccCode.Notifications.Client --version 3.0.1
NuGet\Install-Package BccCode.Notifications.Client -Version 3.0.1
<PackageReference Include="BccCode.Notifications.Client" Version="3.0.1" />
<PackageVersion Include="BccCode.Notifications.Client" Version="3.0.1" />Directory.Packages.props
<PackageReference Include="BccCode.Notifications.Client" />Project file
paket add BccCode.Notifications.Client --version 3.0.1
#r "nuget: BccCode.Notifications.Client, 3.0.1"
#:package BccCode.Notifications.Client@3.0.1
#addin nuget:?package=BccCode.Notifications.Client&version=3.0.1Install as a Cake Addin
#tool nuget:?package=BccCode.Notifications.Client&version=3.0.1Install as a Cake Tool
A clean and simple .NET client for the BCC Notifications API
BccCode.Platform.Apis and BccCode.Platform.Authdotnet add package BccCode.Notifications.Client
// Standard BCC Platform chain
builder.Services.AddBccPlatform(AppEnvironment.Sandbox, clientId, clientSecret)
.AddBccCoreApiClient(/* scopes */)
.AddBccPubSub()
.AddBccNotifications(); // ← Works exactly the same way
That's it! No configuration options, no overloads, just one simple method.
public class EmailService
{
private readonly INotificationClient _notificationClient;
public EmailService(INotificationClient notificationClient)
{
_notificationClient = notificationClient;
}
public async Task SendWelcomeEmail(Guid personUid)
{
var payload = new EmailPayload
{
PersonUid = personUid,
NotificationPayload = new List<EmailContent>
{
new()
{
Language = "en-US",
Subject = "Welcome!",
Title = "Welcome to our service!",
Content = "<h1>Hello [firstName]!</h1><p>Welcome to our service!</p>",
ShowFooter = true // Optional: control footer visibility (default: true)
}
}
};
var response = await _notificationClient.SendEmailAsync(payload);
Console.WriteLine($"Email queued with ID: {response.Id}");
}
}
The client provides clear, actionable error messages:
InvalidOperationException: Could not instantiate NotificationClient due to missing credentials.
Call AddBccPlatform(...) in startup to add BCC platform credentials.
BccCode.Notifications.Client v2.2.0
├── BccCode.Platform.Apis (authentication, HTTP management)
├── BccCode.Platform.Config (environment configuration)
└── Microsoft.Extensions.Http (HTTP client factory)
Task<NotificationResponse> SendEmailAsync(EmailPayload payload, bool dryRun = false, CancellationToken cancellationToken = default)
Task<NotificationResponse> SendSmsAsync(SmsPayload payload, bool dryRun = false, CancellationToken cancellationToken = default)
Task<NotificationResponse> SendNativePushAsync(NativePushPayload payload, bool dryRun = false, CancellationToken cancellationToken = default)
Task<NotificationResponse> SendInAppAsync(InAppPayload payload, bool dryRun = false, CancellationToken cancellationToken = default)
dotnet add package BccCode.Notifications.Client.AddBccNotifications() - no parameters needed!INotificationClient| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.1 | 1,081 | 5/22/2026 |
| 3.0.0 | 95 | 5/20/2026 |
| 2.3.9 | 94 | 4/30/2026 |
| 2.3.8 | 102 | 4/28/2026 |
| 2.3.7 | 108 | 4/28/2026 |
| 2.3.6 | 340 | 2/23/2026 |
| 2.3.5 | 111 | 2/23/2026 |
| 2.3.4 | 148 | 1/29/2026 |
| 2.3.2 | 3,123 | 6/25/2025 |
| 2.3.1 | 212 | 6/25/2025 |
| 2.2.1 | 282 | 6/24/2025 |
| 2.0.2 | 260 | 6/19/2025 |
| 2.0.1 | 223 | 6/19/2025 |
| 1.0.2 | 368 | 6/12/2025 |
| 1.0.1 | 364 | 6/12/2025 |
| 0.0.0 | 105 | 4/30/2026 |