Files
mixtape/Finch/Communication/FinchCommunicationModule.cs
T

14 lines
485 B
C#
Raw Normal View History

2022-12-07 14:05:11 +01:00
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
2026-04-07 14:23:29 +02:00
namespace Finch.Communication;
2022-12-07 14:05:11 +01:00
2026-04-07 14:23:29 +02:00
internal class FinchCommunicationModule : FinchModule
2022-12-07 14:05:11 +01:00
{
public override void ConfigureServices(IServiceCollection services, IConfiguration configuration)
{
services.AddScoped<IMessageAggregator, MessageAggregator>();
services.AddTransient<IHandlerHolder, HandlerHolder>();
services.AddTransient(typeof(Lazy<>), typeof(LazilyResolved<>));
}
}