public void TestLoadToggleSettings() { IConfiguration configuration = InitConfiguration(); ToggleSettings appSettings = configuration.GetSection("appSettings").Get <ToggleSettings>(); Assert.IsNotNull(appSettings); }
private void Return() { ToggleSettings.ToggleSettingsMenu(); }
public Startup(IOptions <ToggleSettings> toggleSettings, IOptions <GdasServiceSettings> gdasServiceSettings) { _toggleSettings = toggleSettings.Value; _gdasServiceSettings = gdasServiceSettings.Value; }
public HomeController(IOptions <ToggleSettings> toggleSettings, IOptions <GdasServiceSettings> gdasServiceSettings) { _toggleSettings = toggleSettings.Value; _gdasServiceSettings = gdasServiceSettings.Value; }
private void Settings() { ToggleSettings.ToggleSettingsMenu(); }
public AppSettingsConfigurationProvider(IConfiguration configuration) { appSettings = configuration.GetSection("appSettings").Get <ToggleSettings>(); Initialise(); }