Pragmatic.Notifications.Webhook
1.0.0-alpha.1
See the version list below for details.
dotnet add package Pragmatic.Notifications.Webhook --version 1.0.0-alpha.1
NuGet\Install-Package Pragmatic.Notifications.Webhook -Version 1.0.0-alpha.1
<PackageReference Include="Pragmatic.Notifications.Webhook" Version="1.0.0-alpha.1" />
<PackageVersion Include="Pragmatic.Notifications.Webhook" Version="1.0.0-alpha.1" />
<PackageReference Include="Pragmatic.Notifications.Webhook" />
paket add Pragmatic.Notifications.Webhook --version 1.0.0-alpha.1
#r "nuget: Pragmatic.Notifications.Webhook, 1.0.0-alpha.1"
#:package Pragmatic.Notifications.Webhook@1.0.0-alpha.1
#addin nuget:?package=Pragmatic.Notifications.Webhook&version=1.0.0-alpha.1&prerelease
#tool nuget:?package=Pragmatic.Notifications.Webhook&version=1.0.0-alpha.1&prerelease
Pragmatic.Notifications
A unified notification pipeline for .NET: one API to send email, webhook, SMS, push, in-app, and Slack notifications, with channel routing, user preferences, delivery tracking, and background processing.
The Problem
Every notification use case grows its own ad-hoc delivery code: a fresh SMTP client here, an HTTP webhook there, a Twilio call elsewhere, each with its own setup, error handling, retry, and tracking. Add a channel and every call site must change; enforcing user preferences (muted categories, do-not-disturb) consistently becomes impossible.
await smtpClient.SendMailAsync(new MailMessage("noreply@hotel.com", guestEmail) { /* ... */ });
await httpClient.PostAsync("https://hooks.slack.com/...", slackJson);
await MessageResource.CreateAsync(to: guestPhone, from: "+1555000", body: "...");
The Solution
Send a notification through one pipeline; channel routing, user preferences, delivery tracking, and background processing are handled for you.
await notifier.SendAsync(new NotificationRequest
{
Audience = NotificationAudience.EndUser,
Recipient = NotificationRecipient.Direct(guest.Email),
Content = new NotificationContent
{
Subject = "Reservation confirmed",
Body = "Your reservation has been confirmed.",
},
Category = "transactional",
});
Configure channels once in the host (app.UseNotifications(n => n.AddSmtp(...))); add a new channel
without touching call sites; user preferences and do-not-disturb are enforced centrally.
Use EnqueueAsync instead of SendAsync to hand the notification to the background worker and return
immediately with a tracking id.
Installation
dotnet add package Pragmatic.Notifications
dotnet add package Pragmatic.Notifications.Webhook # optional: webhook channel
dotnet add package Pragmatic.Notifications.Slack # optional: Slack incoming webhooks
dotnet add package Pragmatic.Notifications.Sms # optional: SMS via Twilio
dotnet add package Pragmatic.Notifications.EFCore # optional: database-backed delivery tracking
dotnet add package Pragmatic.Notifications.Testing # test projects: capture what was sent
The SMTP channel ships inside Pragmatic.Notifications itself and delegates to Pragmatic.Email.
Status
Functional within 1.0.0-alpha: the pipeline, channel routing, user preferences, delivery tracking, and background delivery. See the roadmap.
Channels provided today: e-mail (SMTP), webhook, Slack and SMS (Twilio). NotificationChannel
also declares Push and InApp; those are extension points, not implementations; selecting one
without registering a provider for it makes the send fail with an explanatory error. Implement
INotificationChannel and register it with AddChannel<T>() to add your own.
Addressing a user id, role or tenant requires a recipient resolver. The built-in resolver only
understands direct addresses (Direct, ToWebhook, phone). Turning NotificationRecipient.User(id)
into an address means telling the library where users live; see
Getting Started.
Documentation
| Guide | What you'll learn |
|---|---|
| Concepts | The pipeline, channels, routing, preferences, delivery tracking |
| Getting Started | Send your first notification, configure a channel |
| Common Mistakes | The most frequent notification pitfalls |
| Troubleshooting | Problem/solution guide |
Requirements
- .NET 10.0+
License
Part of the Pragmatic.Design ecosystem. See Licensing. Pragmatic.Notifications is licensed under the PolyForm Small Business 1.0.0 license (free for small businesses; commercial license above the threshold).
| 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. |
-
net10.0
- Microsoft.Extensions.Http (>= 10.0.10)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Options (>= 10.0.10)
- Pragmatic.Notifications (>= 1.0.0-alpha.1)
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 |
|---|---|---|
| 1.0.0-alpha.6 | 95 | 11/21/2026 |
| 1.0.0-alpha.5 | 57 | 11/21/2026 |
| 1.0.0-alpha.4 | 121 | 11/16/2026 |
| 1.0.0-alpha.3 | 395 | 10/17/2026 |
| 1.0.0-alpha.2 | 119 | 10/12/2026 |
| 1.0.0-alpha.1 | 349 | 10/3/2026 |