12 lines
392 B
C#
12 lines
392 B
C#
namespace FictionArchive.Service.Shared.Services.EventBus;
|
|
|
|
public interface IIntegrationEventHandler<in TEvent> : IIntegrationEventHandler where TEvent : IIntegrationEvent
|
|
{
|
|
Task Handle(TEvent @event);
|
|
Task IIntegrationEventHandler.Handle(IIntegrationEvent @event) => Handle((TEvent)@event);
|
|
}
|
|
|
|
public interface IIntegrationEventHandler
|
|
{
|
|
Task Handle(IIntegrationEvent @event);
|
|
} |