ConvergeERP.Shared.Notification
0.0.2-beta
This is a prerelease version of ConvergeERP.Shared.Notification.
dotnet add package ConvergeERP.Shared.Notification --version 0.0.2-beta
NuGet\Install-Package ConvergeERP.Shared.Notification -Version 0.0.2-beta
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ConvergeERP.Shared.Notification" Version="0.0.2-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ConvergeERP.Shared.Notification" Version="0.0.2-beta" />
<PackageReference Include="ConvergeERP.Shared.Notification" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ConvergeERP.Shared.Notification --version 0.0.2-beta
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ConvergeERP.Shared.Notification, 0.0.2-beta"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ConvergeERP.Shared.Notification@0.0.2-beta
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ConvergeERP.Shared.Notification&version=0.0.2-beta&prerelease
#tool nuget:?package=ConvergeERP.Shared.Notification&version=0.0.2-beta&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ConvergeERP.Shared.Notification
Shared integration event contracts for ConvergeERP notification workflows.
What This Package Contains
- Notification request contract used by other services to ask notification-service to send a notification.
- Notification status contracts for successful and failed delivery updates.
- Shared enums for channel and priority values.
Namespace roots:
- ConvergeERP.Shared.Notification.Events.IntegrationEvents
- ConvergeERP.Shared.Notification.Enums
Event Contracts
SendNotificationIntegrationEvent
Use this event to request notification delivery.
Properties on this contract:
- RecipientUserId
- ToEmail
- ToName
- ToPhone
- Subject
- Body
- TemplateCode
- TemplateData
- Attachments (optional, preferred for file payloads)
- IsHtml
- Channel
- Priority
Also inherits common event metadata via VersionedIntegrationEvent and IntegrationEvent:
- Id
- TenantId
- CompanyId
- CorrelationId
- CreationDate
- OccurredOn
- SchemaVersion (default "1.0")
SendNotificationAttachment
Attachment payload for SendNotificationIntegrationEvent.
- FileName
- MimeType
- Content (base64)
NotificationSentIntegrationEvent
Published when delivery succeeds.
- NotificationId
- Channel
- Recipient
- SentAt
- ProviderMessageId
NotificationFailedIntegrationEvent
Published when delivery fails.
- NotificationId
- Channel
- Recipient
- ErrorMessage
- FailedAt
- RetryCount
- WillRetry
- NextRetryAt
Enums
NotificationChannel
- Email = 1
- SMS = 2
- InApp = 4
NotificationPriority
- Low = 1
- Normal = 2
- High = 3
- Urgent = 4
Publishing Example (MassTransit)
using ConvergeERP.Shared.Notification.Enums;
using ConvergeERP.Shared.Notification.Events.IntegrationEvents;
using MassTransit;
public sealed class OrderService
{
private readonly IPublishEndpoint _publishEndpoint;
public OrderService(IPublishEndpoint publishEndpoint)
{
_publishEndpoint = publishEndpoint;
}
public async Task PublishWelcomeAsync(Guid tenantId, Guid companyId, string email, string firstName, CancellationToken ct)
{
await _publishEndpoint.Publish(new SendNotificationIntegrationEvent
{
TenantId = tenantId,
CompanyId = companyId,
CorrelationId = Guid.CreateVersion7(),
ToEmail = email,
ToName = firstName,
Subject = "Welcome to ConvergeERP",
TemplateCode = "USER_WELCOME",
TemplateData = new Dictionary<string, object>
{
["FirstName"] = firstName
},
Attachments = new List<SendNotificationAttachment>
{
new()
{
FileName = "welcome.txt",
MimeType = "text/plain",
Content = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes("Welcome to ConvergeERP"))
}
},
IsHtml = true,
Channel = NotificationChannel.Email,
Priority = NotificationPriority.High
}, ct);
}
}
Compatibility Notes
- Attachments is additive and optional.
- During migration, consumers may still support legacy attachments passed through TemplateData["Attachments"].
- If your service does not send file payloads, you can omit Attachments.
Package Metadata
This project is configured with:
- PackageId: ConvergeERP.Shared.Notification
- TargetFramework: net10.0
- PackageReadmeFile: README.md
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- ConvergeERP.Shared.EventBus (>= 0.0.1-beta)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.2-beta | 947 | 4/17/2026 |
| 0.0.1-beta | 432 | 4/1/2026 |