|
Clean Architecture Demo
|
InProcessDomainEventDispatcher entrega cada evento del dominio a sus manejadores, en el mismo proceso y en el mismo alcance de la solicitud.
More...
Public Member Functions | |
| InProcessDomainEventDispatcher (IServiceProvider serviceProvider) | |
| async Task | DispatchAsync (IReadOnlyCollection< DomainEvent > events, CancellationToken cancellationToken=default) |
InProcessDomainEventDispatcher entrega cada evento del dominio a sus manejadores, en el mismo proceso y en el mismo alcance de la solicitud.
Rol en Clean Architecture:
Los manejadores implementan IDomainEventSubscriber y se registran en Program.cs.
Definition at line 26 of file InProcessDomainEventDispatcher.cs.
| TaskManagement.Infrastructure.EventDispatching.InProcessDomainEventDispatcher.InProcessDomainEventDispatcher | ( | IServiceProvider | serviceProvider | ) |
Definition at line 30 of file InProcessDomainEventDispatcher.cs.
| async Task TaskManagement.Infrastructure.EventDispatching.InProcessDomainEventDispatcher.DispatchAsync | ( | IReadOnlyCollection< DomainEvent > | events, |
| CancellationToken | cancellationToken = default ) |
Implements TaskManagement.Application.Ports.IDomainEventDispatcher.
Definition at line 35 of file InProcessDomainEventDispatcher.cs.