浏览代码

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


正在加载...
取消
保存