コード例 #1
0
 public TestAppConfig(IConfiguration configuration, IConfigurationRefresherProvider refresherProvider, IFeatureManagerSnapshot featureManagerSnapshot)
 {
     isLocal                 = string.IsNullOrEmpty(Environment.GetEnvironmentVariable("WEBSITE_INSTANCE_ID"));
     _configuration          = configuration;
     _featureManagerSnapshot = featureManagerSnapshot;
     _configurationRefresher = refresherProvider.Refreshers.First();
 }
コード例 #2
0
 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");
 }
コード例 #3
0
        /// <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();
        }
コード例 #4
0
 public AzureAppConfigurationRefreshMiddleware(RequestDelegate next, IConfigurationRefresherProvider refresherProvider)
 {
     _next      = next;
     Refreshers = refresherProvider.Refreshers;
 }
コード例 #5
0
 public Function1(IConfiguration configuration, IOptionsSnapshot <ConfigRoot> optionValue, IConfigurationRefresherProvider configurationRefresherProvider)
 {
     _configuration = configuration;
     _optionValue   = optionValue;
     _configurationRefresherProvider = configurationRefresherProvider;
 }
 public AzureAppConfigurationRefreshMiddleware(IConfigurationRefresherProvider refresherProvider)
 {
     Refreshers = refresherProvider.Refreshers;
 }
コード例 #7
0
ファイル: ShowMessage.cs プロジェクト: Azure/AppConfiguration
 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();
 }
コード例 #9
0
 public RefreshSettingsModel(IConfigurationRefresherProvider refresherProvider)
 {
     _configurationRefresher = refresherProvider.Refreshers.First();
 }
コード例 #10
0
        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();
        }
コード例 #11
0
 public HttpTrigger(IConfiguration configuration, IConfigurationRefresherProvider refresherProvider)
 {
     _configuration          = configuration;
     _configurationRefresher = refresherProvider.Refreshers.First();
 }
コード例 #12
0
 public AppConfigFunction(IConfiguration configuration, IConfigurationRefresherProvider refresherProvider)
 {
     _configuration          = configuration;
     _configurationRefresher = refresherProvider.Refreshers.First();
 }
コード例 #13
0
 public ShipDefenseOrchestrator(IFeatureManager featureManager, IConfigurationRefresherProvider refresherProvider)
 {
     _featureManager = featureManager;
     _refresher      = refresherProvider.Refreshers.First();
 }
コード例 #14
0
 public BatchTelemetryProcessor(IConfiguration configuration, IConfigurationRefresherProvider refresherProvider)
 {
     this.configuration          = configuration;
     this.configurationRefresher = refresherProvider.Refreshers.First();
 }
コード例 #15
0
 public ShowShipFlag(IFeatureManager featureManager, IConfigurationRefresherProvider refresherProvider)
 {
     _featureManager = featureManager;
     _refresher      = refresherProvider.Refreshers.First();
 }
コード例 #16
0
 public EventHubService(IOptions <EventHubConnection> eventHubConnection, IConfigurationRefresherProvider refresherProvider, ILogger <EventHubService> logger)
 {
     _logger = logger;
     InitEventHubProcessor(eventHubConnection.Value);
     _configurationRefresher = refresherProvider.Refreshers.FirstOrDefault();
 }
コード例 #17
0
 public ShowBetaFeature(IFeatureManagerSnapshot featureManagerSnapshot, IConfigurationRefresherProvider refresherProvider)
 {
     _featureManagerSnapshot = featureManagerSnapshot;
     _configurationRefresher = refresherProvider.Refreshers.First();
 }
コード例 #18
0
ファイル: UpdatesController.cs プロジェクト: sm15455/Events
 public UpdatesController(IHubContext <GridEventsHub> gridEventsHubContext, IConfigurationRefresherProvider refresher)
 {
     this._hubContext = gridEventsHubContext;
     this._refresher  = refresher.Refreshers.First();
 }