diff --git a/lib/Logitar.Identity.Infrastructure/EventBus.cs b/lib/Logitar.Identity.Infrastructure/EventBus.cs index d4dc631..4e6f149 100644 --- a/lib/Logitar.Identity.Infrastructure/EventBus.cs +++ b/lib/Logitar.Identity.Infrastructure/EventBus.cs @@ -4,7 +4,7 @@ namespace Logitar.Identity.Infrastructure; -internal class EventBus : IEventBus +public class EventBus : IEventBus { private readonly IMediator _mediator; @@ -13,7 +13,7 @@ public EventBus(IMediator mediator) _mediator = mediator; } - public async Task PublishAsync(IEvent @event, CancellationToken cancellationToken) + public virtual async Task PublishAsync(IEvent @event, CancellationToken cancellationToken) { await _mediator.Publish(@event, cancellationToken); }