NotificationService.Contracts 1.0.2

dotnet add package NotificationService.Contracts --version 1.0.2
                    
NuGet\Install-Package NotificationService.Contracts -Version 1.0.2
                    
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="NotificationService.Contracts" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NotificationService.Contracts" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="NotificationService.Contracts" />
                    
Project file
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 NotificationService.Contracts --version 1.0.2
                    
#r "nuget: NotificationService.Contracts, 1.0.2"
                    
#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 NotificationService.Contracts@1.0.2
                    
#: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=NotificationService.Contracts&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=NotificationService.Contracts&version=1.0.2
                    
Install as a Cake Tool

NotificationService.Contracts

Event contracts for NotificationService integration. All services reference this package to publish notification events.

Installation

dotnet add package NotificationService.Contracts

Usage

Reference this package in any service that needs to publish notification events:

using NotificationService.Contracts.Events;
using NotificationService.Contracts.Enums;

// Create a notification event
var evt = new QuestionnaireSubmittedEvent
{
    TenantId = tenantId,
    UserId = templateOwnerId,
    QuestionnaireId = questionnaireId,
    TemplateId = templateId,
    TemplateName = "Customer Feedback",
    RespondentName = "John Doe"
};

Events

Event Description Priority
QuestionnaireSubmittedEvent Published when a questionnaire response is submitted Normal
TemplateUpdatedEvent Published when a template is updated Low
UserInvitedEvent Published when a user is invited to a tenant High
MenuUpdatedEvent Published when a menu is updated Low
SubscriptionExpiringEvent Published when a subscription is about to expire High
PaymentDueEvent Published when a payment is due Urgent

Notification Types

Use the NotificationTypes class for well-known notification type identifiers:

// Available notification types
NotificationTypes.QuestionnaireSubmitted  // "questionnaire.submitted"
NotificationTypes.TemplateUpdated         // "template.updated"
NotificationTypes.TemplateDeleted         // "template.deleted"
NotificationTypes.UserInvited             // "user.invited"
NotificationTypes.UserRemoved             // "user.removed"
NotificationTypes.MenuUpdated             // "menu.updated"
NotificationTypes.MenuItemAdded           // "menu.item.added"
NotificationTypes.SubscriptionExpiring    // "subscription.expiring"
NotificationTypes.PaymentDue              // "payment.due"
NotificationTypes.PaymentFailed           // "payment.failed"
NotificationTypes.SystemAnnouncement      // "system.announcement"

License

MIT

Product 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

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on NotificationService.Contracts:

Package Downloads
Messaging.RabbitMq.Core

Shared RabbitMQ configuration and publisher utilities for all services. REQUIRED for publishing notification events.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 1,055 3/7/2026
1.0.1 1,619 1/30/2026