public TestAppConfig(IConfiguration configuration, IConfigurationRefresherProvider refresherProvider, IFeatureManagerSnapshot featureManagerSnapshot) { isLocal = string.IsNullOrEmpty(Environment.GetEnvironmentVariable("WEBSITE_INSTANCE_ID")); _configuration = configuration; _featureManagerSnapshot = featureManagerSnapshot; _configurationRefresher = refresherProvider.Refreshers.First(); }
public LeeBus(IConfiguration configuration, IConfigurationRefresherProvider refresherProvider, IFeatureManagerSnapshot featureManagerSnapshot) { isLocal = string.IsNullOrEmpty(Environment.GetEnvironmentVariable("WEBSITE_INSTANCE_ID")); _configuration = configuration; _featureManagerSnapshot = featureManagerSnapshot; _configurationRefresher = refresherProvider.Refreshers.First(); connString = Environment.GetEnvironmentVariable("SqlServerConnection"); }
/// <summary> /// Initializes a new instance of the <see cref="ProcessNotificationQueueItem"/> class. /// </summary> /// <param name="logger">The log.</param> /// <param name="configuration">The configuration.</param> /// <param name="repositoryFactory">The repositoryFactory.</param> /// <param name="httpClientHelper">The httpClientHelper.</param> /// <param name="refresherProvider">The IConfigurationRefresherProvider.</param> public ProcessNotificationQueueItem( ILogger logger, IConfiguration configuration, IRepositoryFactory repositoryFactory, IHttpClientHelper httpClientHelper, IConfigurationRefresherProvider refresherProvider) { this.logger = logger; this.configuration = configuration; this.emailNotificationRepository = repositoryFactory.GetRepository(Enum.TryParse <StorageType>(this.configuration?[Constants.StorageType], out this.repo) ? this.repo : throw new Exception()); this.httpClientHelper = httpClientHelper; this.configurationRefresher = refresherProvider.Refreshers.First(); //No need to await RefreshKeys(); }
public AzureAppConfigurationRefreshMiddleware(RequestDelegate next, IConfigurationRefresherProvider refresherProvider) { _next = next; Refreshers = refresherProvider.Refreshers; }
public Function1(IConfiguration configuration, IOptionsSnapshot <ConfigRoot> optionValue, IConfigurationRefresherProvider configurationRefresherProvider) { _configuration = configuration; _optionValue = optionValue; _configurationRefresherProvider = configurationRefresherProvider; }
public AzureAppConfigurationRefreshMiddleware(IConfigurationRefresherProvider refresherProvider) { Refreshers = refresherProvider.Refreshers; }
public ShowMessage(IConfiguration configuration, IConfigurationRefresherProvider refresherProvider) { _configuration = configuration; _configurationRefresher = refresherProvider.Refreshers.First(); }
public ApplicationConfigService(IConfiguration configuration, IConfigurationRefresherProvider refresherProvider) { _config = configuration; _configRefresher = refresherProvider.Refreshers.First(); _configRefresher.TryRefreshAsync(); }
public RefreshSettingsModel(IConfigurationRefresherProvider refresherProvider) { _configurationRefresher = refresherProvider.Refreshers.First(); }
public ConnectingDemo(IConfiguration configuration, IFeatureManagerSnapshot featureManagerSnapshot, IConfigurationRefresherProvider refresherProvider) { // Connects to a storage queue client. Address looks like https://identitydemo.queue.core.windows.net // The queuename is just a valid queue name. _client = new QueueClient(new Uri($"{configuration["Queue:Uri"]}/{configuration["Queue:Name"]}"), new DefaultAzureCredential(), new QueueClientOptions() { MessageEncoding = QueueMessageEncoding.Base64 }); _client.CreateIfNotExists(); // Grab the feature flag API _featureManagerSnapshot = featureManagerSnapshot; _configurationRefresher = refresherProvider.Refreshers.First(); }
public HttpTrigger(IConfiguration configuration, IConfigurationRefresherProvider refresherProvider) { _configuration = configuration; _configurationRefresher = refresherProvider.Refreshers.First(); }
public AppConfigFunction(IConfiguration configuration, IConfigurationRefresherProvider refresherProvider) { _configuration = configuration; _configurationRefresher = refresherProvider.Refreshers.First(); }
public ShipDefenseOrchestrator(IFeatureManager featureManager, IConfigurationRefresherProvider refresherProvider) { _featureManager = featureManager; _refresher = refresherProvider.Refreshers.First(); }
public BatchTelemetryProcessor(IConfiguration configuration, IConfigurationRefresherProvider refresherProvider) { this.configuration = configuration; this.configurationRefresher = refresherProvider.Refreshers.First(); }
public ShowShipFlag(IFeatureManager featureManager, IConfigurationRefresherProvider refresherProvider) { _featureManager = featureManager; _refresher = refresherProvider.Refreshers.First(); }
public EventHubService(IOptions <EventHubConnection> eventHubConnection, IConfigurationRefresherProvider refresherProvider, ILogger <EventHubService> logger) { _logger = logger; InitEventHubProcessor(eventHubConnection.Value); _configurationRefresher = refresherProvider.Refreshers.FirstOrDefault(); }
public ShowBetaFeature(IFeatureManagerSnapshot featureManagerSnapshot, IConfigurationRefresherProvider refresherProvider) { _featureManagerSnapshot = featureManagerSnapshot; _configurationRefresher = refresherProvider.Refreshers.First(); }
public UpdatesController(IHubContext <GridEventsHub> gridEventsHubContext, IConfigurationRefresherProvider refresher) { this._hubContext = gridEventsHubContext; this._refresher = refresher.Refreshers.First(); }