コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CachingAppConfigRetriever"/> class.
 /// </summary>
 /// <param name="cache">The memory cache.</param>
 /// <param name="appConfig">The AWS AppConfig client.</param>
 /// <param name="cloudConfig">The CloudConfig.</param>
 public CachingAppConfigRetriever(
     IMemoryCache cache,
     IAmazonAppConfig appConfig,
     CloudConfig cloudConfig)
 {
     this.cache     = cache;
     this.appConfig = appConfig;
     this.stage     = cloudConfig.Stage;
 }
コード例 #2
0
 private Amazon.AppConfig.Model.GetDeploymentResponse CallAWSServiceOperation(IAmazonAppConfig client, Amazon.AppConfig.Model.GetDeploymentRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS AppConfig", "GetDeployment");
     try
     {
         #if DESKTOP
         return(client.GetDeployment(request));
         #elif CORECLR
         return(client.GetDeploymentAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }
コード例 #3
0
 internal ListDeploymentsPaginator(IAmazonAppConfig client, ListDeploymentsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
 internal ListHostedConfigurationVersionsPaginator(IAmazonAppConfig client, ListHostedConfigurationVersionsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
コード例 #5
0
 internal ListConfigurationProfilesPaginator(IAmazonAppConfig client, ListConfigurationProfilesRequest request)
 {
     this._client  = client;
     this._request = request;
 }
コード例 #6
0
 internal ListApplicationsPaginator(IAmazonAppConfig client, ListApplicationsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
コード例 #7
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }
コード例 #8
0
 internal AppConfigPaginatorFactory(IAmazonAppConfig client)
 {
     this.client = client;
 }
コード例 #9
0
 public AwsAppConfigProvider(AwsAppConfigConfiguration configuration, string clientId, IAmazonAppConfig appConfigClient = null)
 {
     _configuration   = configuration;
     _clientId        = clientId;
     _appConfigClient = appConfigClient ?? new AmazonAppConfigClient();
 }