Explorar el Código

inject failed message processor.

master
Savorboard hace 7 años
padre
commit
b9c31c8257
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs

+ 2
- 1
src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs Ver fichero

@@ -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();


Cargando…
Cancelar
Guardar