예제 #1
0
        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);
            }
        }
예제 #2
0
 internal static void Init(IOptions <BalancerSettings> init)
 {
     _current = init.Value;
     _current.Init();
 }