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
<PackageReference Include="EXCSLA.Shared.Core.Abstractions.DomainEventDispatcher" Version="5.3.1" />
<PackageVersion Include="EXCSLA.Shared.Core.Abstractions.DomainEventDispatcher" Version="5.3.1" />
<PackageReference Include="EXCSLA.Shared.Core.Abstractions.DomainEventDispatcher" />
paket add EXCSLA.Shared.Core.Abstractions.DomainEventDispatcher --version 5.3.1
#r "nuget: EXCSLA.Shared.Core.Abstractions.DomainEventDispatcher, 5.3.1"
#:package EXCSLA.Shared.Core.Abstractions.DomainEventDispatcher@5.3.1
#addin nuget:?package=EXCSLA.Shared.Core.Abstractions.DomainEventDispatcher&version=5.3.1
#tool nuget:?package=EXCSLA.Shared.Core.Abstractions.DomainEventDispatcher&version=5.3.1
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. |
-
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.