Przeglądaj źródła

inject failed message processor.

master
Savorboard 7 lat temu
rodzic
commit
b9c31c8257
1 zmienionych plików z 2 dodań i 1 usunięć
  1. +2
    -1
      src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs

+ 2
- 1
src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs Wyświetl plik

@@ -46,12 +46,13 @@ namespace Microsoft.Extensions.DependencyInjection
//Processors
services.AddTransient<PublishQueuer>();
services.AddTransient<SubscribeQueuer>();
services.AddTransient<FailedJobProcessor>();
services.AddTransient<FailedProcessor>();
services.AddTransient<IDispatcher, DefaultDispatcher>();

//Executors
services.AddSingleton<IQueueExecutorFactory, QueueExecutorFactory>();
services.AddSingleton<IQueueExecutor, SubscribeQueueExecutor>();
services.TryAddSingleton<ISubscriberExecutor, DefaultSubscriberExecutor>();

//Options and extension service
var options = new CapOptions();


Ładowanie…
Anuluj
Zapisz