瀏覽代碼

inject failed message processor.

master
Savorboard 7 年之前
父節點
當前提交
b9c31c8257
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs

+ 2
- 1
src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs 查看文件

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


Loading…
取消
儲存