diff --git a/src/TbdDevelop.Mediator.Outbox/Extensions/Configuration/MediatorOutboxConfigurationBuilder.cs b/src/TbdDevelop.Mediator.Outbox/Extensions/Configuration/MediatorOutboxConfigurationBuilder.cs index 7d7dace..591f824 100644 --- a/src/TbdDevelop.Mediator.Outbox/Extensions/Configuration/MediatorOutboxConfigurationBuilder.cs +++ b/src/TbdDevelop.Mediator.Outbox/Extensions/Configuration/MediatorOutboxConfigurationBuilder.cs @@ -41,6 +41,8 @@ public MediatorOutboxConfigurationBuilder AddOutboxMonitoringService( { _services.AddHostedService(); + _services.AddTransient(); + if (configure is null) { _services.Configure(_ => { }); diff --git a/src/TbdDevelop.Mediator.Outbox/Infrastructure/IQueueProcessor.cs b/src/TbdDevelop.Mediator.Outbox/Infrastructure/IQueueProcessor.cs index 9f163ad..ec04806 100644 --- a/src/TbdDevelop.Mediator.Outbox/Infrastructure/IQueueProcessor.cs +++ b/src/TbdDevelop.Mediator.Outbox/Infrastructure/IQueueProcessor.cs @@ -1,6 +1,4 @@ -using TbdDevelop.Mediator.Outbox.Services; - -namespace TbdDevelop.Mediator.Outbox.Infrastructure; +namespace TbdDevelop.Mediator.Outbox.Infrastructure; public interface IQueueProcessor {