public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, IOptions <BalancerSettings> init) { BalancerSettings.Init(init); foreach (var item in BalancerSettings.Current.MiddleWares) { item.Value.Register(app, Configuration, env, loggerFactory); } }
internal static void Init(IOptions <BalancerSettings> init) { _current = init.Value; _current.Init(); }