Commit 5af28b60 authored by Savorboard's avatar Savorboard

add IPublishExecutor

parent 83595345
...@@ -24,6 +24,7 @@ namespace DotNetCore.CAP ...@@ -24,6 +24,7 @@ namespace DotNetCore.CAP
services.AddSingleton<IConsumerClientFactory, KafkaConsumerClientFactory>(); services.AddSingleton<IConsumerClientFactory, KafkaConsumerClientFactory>();
services.AddSingleton<IQueueExecutor, PublishQueueExecutor>(); services.AddSingleton<IQueueExecutor, PublishQueueExecutor>();
services.AddSingleton<IPublishExecutor, PublishQueueExecutor>();
} }
} }
} }
\ No newline at end of file
...@@ -23,10 +23,9 @@ namespace DotNetCore.CAP ...@@ -23,10 +23,9 @@ namespace DotNetCore.CAP
services.AddSingleton(options); services.AddSingleton(options);
services.AddSingleton<IConsumerClientFactory, RabbitMQConsumerClientFactory>(); services.AddSingleton<IConsumerClientFactory, RabbitMQConsumerClientFactory>();
services.AddSingleton<ConnectionPool>(); services.AddSingleton<ConnectionPool>();
services.AddSingleton<IQueueExecutor, PublishQueueExecutor>(); services.AddSingleton<IQueueExecutor, PublishQueueExecutor>();
services.AddSingleton<IPublishExecutor, PublishQueueExecutor>();
} }
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment