mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-11 10:32:09 +08:00
12 lines
379 B
C#
12 lines
379 B
C#
using BuildingBlocks.Core.Event;
|
|
|
|
namespace BuildingBlocks.Core;
|
|
|
|
public interface IEventDispatcher
|
|
{
|
|
public Task SendAsync<T>(IReadOnlyList<T> events, Type type = null, CancellationToken cancellationToken = default)
|
|
where T : IEvent;
|
|
public Task SendAsync<T>(T @event, Type type = null, CancellationToken cancellationToken = default)
|
|
where T : IEvent;
|
|
}
|