From ebfa600a4e1fff181bebbeb3b9e143e8e55d8d36 Mon Sep 17 00:00:00 2001 From: Francis Pion Date: Mon, 23 Dec 2024 19:48:53 -0500 Subject: [PATCH] Fixed EventBus. (#79) --- lib/Logitar.Identity.Infrastructure/EventBus.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }