2021-11-20 13:52:28 +01:00
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
|
|
|
|
namespace zero.Applications;
|
|
|
|
|
|
|
|
|
|
internal class CommunicationModule : ZeroModule
|
|
|
|
|
{
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
public override void Register(IZeroModuleConfiguration config)
|
|
|
|
|
{
|
2021-11-22 16:03:02 +01:00
|
|
|
config.Services.AddScoped<IInterceptors, Interceptors>();
|
2021-11-20 13:52:28 +01:00
|
|
|
config.Services.AddSingleton<IMessageAggregator, MessageAggregator>();
|
2021-11-22 14:29:22 +01:00
|
|
|
config.Services.AddTransient<IHandlerHolder, HandlerHolder>();
|
2021-11-20 13:52:28 +01:00
|
|
|
}
|
|
|
|
|
}
|