public override void Configure(Container container) { SetConfig(new HostConfig { WebHostUrl = serviceUrl, ApiVersion = "2.3", HandlerFactoryPath = "api" }); AppSettings = new ConsulAppSettings(KeySpecificity.Global).WithCache(10000); // Uncomment the following line to use Multi cascading IAppSetting providers /*AppSettings = new MultiAppSettings( * new ConsulAppSettings(), * new AppSettings(), * new EnvironmentVariableSettings());*/ }
public override void Configure(Container container) { SetConfig(new HostConfig { WebHostUrl = serviceUrl }); AppSettings = new ConsulAppSettings(); // Uncomment the following line to use Multi cascading IAppSetting providers /*AppSettings = new MultiAppSettings( * new ConsulAppSettings(), * new AppSettings(), * new EnvironmentVariableSettings());*/ }
public void Set_Respects_KeySpecificity(KeySpecificity keySpecificity, string expectedKey) { var keySpecificAppSetting = new ConsulAppSettings(keySpecificity); VerifySetEndpoint(() => keySpecificAppSetting.Set(SlashKey, 123), "true", expectedKey); }
public ConsulAppSettingsTests(AppHostFixture fixture) { this.fixture = fixture; appSettings = new ConsulAppSettings(KeySpecificity.LiteralKey); }
public ConsulAppSettingsTests() { appSettings = new ConsulAppSettings(); }