Validate() public method

Performs validation on this config object. Throws exception if any of the required values are missing/invalid.
public Validate ( ) : void
return void
Ejemplo n.º 1
0
 protected AmazonServiceClient(AWSCredentials credentials, ClientConfig config)
 {
     if (config.DisableLogging)
     {
         _logger = Logger.EmptyLogger;
     }
     else
     {
         _logger = Logger.GetLogger(GetType());
     }
     config.Validate();
     Config      = config;
     Credentials = credentials;
     Signer      = CreateSigner();
     Initialize();
     BuildRuntimePipeline();
 }
        internal AbstractWebServiceClient(AWSCredentials credentials, ClientConfig config, AuthenticationTypes authenticationType)
        {
            if (config.DisableLogging)
            {
                this.logger = Logger.EmptyLogger;
            }
            else
            {
                this.logger = Logger.GetLogger(this.GetType());
            }

            config.Validate();
            this.Config             = config;
            this.AuthenticationType = authenticationType;
            this.Credentials        = credentials;

            Initialize();
        }
Ejemplo n.º 3
0
        protected AmazonServiceClient(AWSCredentials credentials, ClientConfig config)
        {
            if (config.DisableLogging)
            {
                _logger = Logger.EmptyLogger;
            }
            else
            {
                _logger = Logger.GetLogger(this.GetType());
            }

            config.Validate();
            this.Credentials          = credentials;
            _config                   = config;
            Signer                    = CreateSigner();
            EndpointDiscoveryResolver = new EndpointDiscoveryResolver(config, _logger);
            Initialize();
            BuildRuntimePipeline();
        }