2022-07-31 01:39:37 +04:30

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;
}