mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-26 23:57:35 +08:00
13 lines
557 B
C#
13 lines
557 B
C#
using BuildingBlocks.Core.Event;
|
|
|
|
namespace BuildingBlocks.Core;
|
|
|
|
public interface IEventDispatcher
|
|
{
|
|
public Task SendAsync(IReadOnlyList<IDomainEvent> domainEvents, CancellationToken cancellationToken = default);
|
|
public Task SendAsync(IDomainEvent domainEvent, CancellationToken cancellationToken = default);
|
|
|
|
public Task SendAsync(IIntegrationEvent integrationEvent, CancellationToken cancellationToken = default);
|
|
public Task SendAsync(IReadOnlyList<IIntegrationEvent> integrationEvents, CancellationToken cancellationToken = default);
|
|
}
|