|
|
@@ -32,20 +32,20 @@ namespace Microsoft.Extensions.DependencyInjection |
|
|
|
|
|
|
|
AddSubscribeServices(services); |
|
|
|
|
|
|
|
// serializer and model binder |
|
|
|
//Serializer and model binder |
|
|
|
services.TryAddSingleton<IContentSerializer, JsonContentSerializer>(); |
|
|
|
services.TryAddSingleton<IConsumerServiceSelector, DefaultConsumerServiceSelector>(); |
|
|
|
services.TryAddSingleton<IModelBinderFactory, ModelBinderFactory>(); |
|
|
|
services.TryAddSingleton<IConsumerInvokerFactory, ConsumerInvokerFactory>(); |
|
|
|
services.TryAddSingleton<MethodMatcherCache>(); |
|
|
|
|
|
|
|
//bootstrap |
|
|
|
//Bootstrapper and Processors |
|
|
|
services.AddSingleton<IProcessingServer, ConsumerHandler>(); |
|
|
|
services.AddSingleton<IProcessingServer, CapProcessingServer>(); |
|
|
|
services.AddSingleton<IBootstrapper, DefaultBootstrapper>(); |
|
|
|
services.AddSingleton<IStateChanger, StateChanger>(); |
|
|
|
|
|
|
|
//Processors |
|
|
|
//Queue's message processor |
|
|
|
services.AddTransient<PublishQueuer>(); |
|
|
|
services.AddTransient<SubscribeQueuer>(); |
|
|
|
services.AddTransient<FailedProcessor>(); |
|
|
|