BlogDoFT.Libs.DomainNotifications
10.0.1
See the version list below for details.
dotnet add package BlogDoFT.Libs.DomainNotifications --version 10.0.1
NuGet\Install-Package BlogDoFT.Libs.DomainNotifications -Version 10.0.1
<PackageReference Include="BlogDoFT.Libs.DomainNotifications" Version="10.0.1" />
<PackageVersion Include="BlogDoFT.Libs.DomainNotifications" Version="10.0.1" />
<PackageReference Include="BlogDoFT.Libs.DomainNotifications" />
paket add BlogDoFT.Libs.DomainNotifications --version 10.0.1
#r "nuget: BlogDoFT.Libs.DomainNotifications, 10.0.1"
#:package BlogDoFT.Libs.DomainNotifications@10.0.1
#addin nuget:?package=BlogDoFT.Libs.DomainNotifications&version=10.0.1
#tool nuget:?package=BlogDoFT.Libs.DomainNotifications&version=10.0.1
BlogDoFT.Libs.DomainNotifications
Domain notification pattern implementation. Simple, lightweight types to collect domain validation and business rule notifications during command handling and validation flows.
Basic usage
var bag = new DomainNotificationBag();
bag.Add(new DomainNotification("INVALID_EMAIL", "Email address is invalid"));
if (bag.HasNotifications)
{
// return or log aggregated problems
}
Integration with API layer
Use DomainNotifications.Extensions to map a notification bag to an HTTP-friendly response (400/422) in controllers or middleware.
Versioning
Starting with v10.0.0, this library's version numbering follows the major version of the .NET runtime it targets. For example, this version is compatible with .NET 10, so the major version is 10 — this explains the jump from the previous 1.x version series.
| 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
NuGet packages (1)
Showing the top 1 NuGet packages that depend on BlogDoFT.Libs.DomainNotifications:
| Package | Downloads |
|---|---|
|
BlogDoFT.Libs.DomainNotifications.Extensions
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.