EXCSLA.Shared.Core.Abstractions.DomainEventDispatcher
5.3.1
dotnet add package EXCSLA.Shared.Core.Abstractions.DomainEventDispatcher --version 5.3.1
NuGet\Install-Package EXCSLA.Shared.Core.Abstractions.DomainEventDispatcher -Version 5.3.1
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="EXCSLA.Shared.Core.Abstractions.DomainEventDispatcher" Version="5.3.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EXCSLA.Shared.Core.Abstractions.DomainEventDispatcher" Version="5.3.1" />Directory.Packages.props
<PackageReference Include="EXCSLA.Shared.Core.Abstractions.DomainEventDispatcher" />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 EXCSLA.Shared.Core.Abstractions.DomainEventDispatcher --version 5.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EXCSLA.Shared.Core.Abstractions.DomainEventDispatcher, 5.3.1"
#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 EXCSLA.Shared.Core.Abstractions.DomainEventDispatcher@5.3.1
#: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=EXCSLA.Shared.Core.Abstractions.DomainEventDispatcher&version=5.3.1Install as a Cake Addin
#tool nuget:?package=EXCSLA.Shared.Core.Abstractions.DomainEventDispatcher&version=5.3.1Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
EXCSLA.Shared.Core.Abstractions.DomainEventDispatcher
Domain event dispatcher abstraction for publishing domain events in the EXCSLA framework.
Overview
Provides an abstraction for dispatching domain events to registered handlers throughout your application.
Key Interface
- IDomainEventDispatcher - Event dispatcher for domain events
Installation
dotnet add package EXCSLA.Shared.Core.Abstractions.DomainEventDispatcher
Usage
public class OrderCreatedEvent : BaseDomainEvent
{
public OrderNumber OrderNumber { get; set; }
public DateTime CreatedAt { get; set; }
}
// Usage
public class CreateOrderHandler : ICommandHandler<CreateOrderCommand>
{
private readonly IDomainEventDispatcher _dispatcher;
public async Task Handle(CreateOrderCommand command)
{
var order = new Order(command.OrderNumber);
// Dispatch event to handlers
await _dispatcher.DispatchAsync(
new OrderCreatedEvent
{
OrderNumber = order.OrderNumber,
CreatedAt = DateTime.UtcNow
});
}
}
Features
- Type-safe event dispatching
- Support for multiple handlers per event
- Async/await patterns
- Easy registration in DI container
Dependencies
- .NET 10.0 or higher
License
See LICENSE file in repository
Support
For issues and questions, visit the GitHub repository
| 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
- EXCSLA.Shared.Core (>= 5.3.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on EXCSLA.Shared.Core.Abstractions.DomainEventDispatcher:
| Package | Downloads |
|---|---|
|
EXCSLA.Shared.Infrastructure.Data.EntityFrameworkCore.ApiAuthorization
A Domain Driven shared library, containing basic components for setting up a Entity Framework Core in the domain with an ApiAuthorization DbContext. |
|
|
EXCSLA.Shared.Infrastructure.Data.EntityFrameworkCore.Identity
A Domain Driven shared library, containing basic components for setting up a Entity Framework Core in the domain with an Identity DbContext. |
GitHub repositories
This package is not used by any popular GitHub repositories.