Browse Source

inject failed message processor.

master
Savorboard 7 years ago
parent
commit
b9c31c8257
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs

+ 2
- 1
src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs View File

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


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


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


Loading…
Cancel
Save