Files
mixtape/zero.Core/Architecture/ZeroArchitectureModule.cs
T

15 lines
573 B
C#
Raw Normal View History

2021-11-26 12:31:33 +01:00
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
2021-11-23 22:56:22 +01:00
namespace zero.Architecture;
2022-01-06 18:10:58 +01:00
internal class ZeroArchitectureModule : 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<IBlueprintService, BlueprintService>();
services.AddScoped<IInterceptor, BlueprintInterceptor>();
services.AddScoped<IInterceptor, BlueprintChildInterceptor>();
2021-11-30 14:32:10 +01:00
services.AddOptions<BlueprintOptions>().Bind(configuration.GetSection("Zero:Blueprints"));
2021-11-23 22:56:22 +01:00
}
}