RE 4 (incl. new Interceptors)
This commit is contained in:
@@ -8,10 +8,7 @@ internal class ConfigurationModule : ZeroModule
|
||||
/// <inheritdoc />
|
||||
public override void Register(IZeroModuleConfiguration config)
|
||||
{
|
||||
config.Services.AddOptions<ZeroOptions>()
|
||||
.Bind(config.Configuration.GetSection("Zero"))
|
||||
.Configure(opts => opts.ZeroVersion = "0.0.1.0" /*// TODO*/);
|
||||
|
||||
config.Services.AddOptions<ZeroOptions>().Bind(config.Configuration.GetSection("Zero")).Configure(opts => { });
|
||||
config.Services.AddTransient<IZeroOptions>(factory => factory.GetService<IOptionsMonitor<ZeroOptions>>().CurrentValue);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user