RaiseManyAsync Method
Definition
- Namespace
- Savvyio.Extensions.EFCore.Domain
- Assemblies
- Savvyio.Extensions.EFCore.Domain.dll
RaiseManyAsync(IDomainEventDispatcher, DbContext, Action<AsyncOptions>)
Asynchronously raises domain events from the specified context to handlers that implements the IDomainEventHandler interface.
public static Task RaiseManyAsync(this IDomainEventDispatcher dispatcher, DbContext context, Action<AsyncOptions> setup = null)
Parameters
dispatcherIDomainEventDispatcherThe IDomainEventDispatcher to extend.
contextDbContextThe DbContext to extract aggregate(s) and publish domain events from.
setupAction<AsyncOptions>The AsyncOptions which may be configured.