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)
|
|
|
|
|
{
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
}
|