public DiskFileConfigurationRepository(IWebHostEnvironment hostingEnvironment, IOcelotConfigurationChangeTokenSource changeTokenSource) { _changeTokenSource = changeTokenSource; _environmentFilePath = $"{AppContext.BaseDirectory}{ConfigurationFileName}{(string.IsNullOrEmpty(hostingEnvironment.EnvironmentName) ? string.Empty : ".")}{hostingEnvironment.EnvironmentName}.json"; _ocelotFilePath = $"{AppContext.BaseDirectory}{ConfigurationFileName}.json"; }
public InMemoryInternalConfigurationRepository(IOcelotConfigurationChangeTokenSource changeTokenSource) { _changeTokenSource = changeTokenSource; }
public OcelotConfigurationChangeTokenSourceTests() { _source = new OcelotConfigurationChangeTokenSource(); }
public void GivenIHaveAChangeToken() { _changeToken = _ocelotServer.Host.Services.GetRequiredService <IOcelotConfigurationChangeTokenSource>(); }
public OcelotConfigurationMonitor(IInternalConfigurationRepository repo, IOcelotConfigurationChangeTokenSource changeTokenSource) { _changeTokenSource = changeTokenSource; _repo = repo; }
public MySqlFileConfigurationRepository(IServiceProvider serviceProvider) { _serviceProvider = serviceProvider; _changeTokenSource = serviceProvider.GetRequiredService <IOcelotConfigurationChangeTokenSource>(); }