public MyNameServiceUsingNamedOptionsFactory(IOptionsFactory <MyOptions> myOptions)
 {
     _options1 = myOptions.Create("Options1");
     _options2 = myOptions.Create("Options2");
 }
 public MyNameServiceUsingNamedOptionsMonitor(IOptionsMonitor <MyOptions> myOptions)
 {
     _options1 = myOptions.Get("Options1");
     _options2 = myOptions.Get("Options2");
 }
Exemplo n.º 3
0
 public MyNameServiceUsingNamedOptionsSnapshot(IOptionsSnapshot <MyOptions> myOptions)
 {
     _options1 = myOptions.Get("Options1");
     _options2 = myOptions.Get("Options2");
 }