2021-11-23 22:56:22 +01:00
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
|
|
|
|
namespace zero.Communication;
|
|
|
|
|
|
2022-01-06 18:10:58 +01:00
|
|
|
internal class ZeroCommunicationModule : ZeroModule
|
2021-11-23 22:56:22 +01:00
|
|
|
{
|
2021-11-30 14:32:10 +01:00
|
|
|
public override void ConfigureServices(IServiceCollection services, IConfiguration configuration)
|
2021-11-23 22:56:22 +01:00
|
|
|
{
|
|
|
|
|
services.AddScoped<IInterceptors, Interceptors>();
|
|
|
|
|
services.AddSingleton<IMessageAggregator, MessageAggregator>();
|
|
|
|
|
services.AddTransient<IHandlerHolder, HandlerHolder>();
|
2021-12-29 01:25:35 +01:00
|
|
|
services.AddTransient(typeof(Lazy<>), typeof(LazilyResolved<>));
|
2021-11-23 22:56:22 +01:00
|
|
|
}
|
|
|
|
|
}
|