コード例 #1
0
 protected void ValidateMandatoryOptions(IOfferAwsOperationsOptionValues options)
 {
     if (string.IsNullOrWhiteSpace(options.PrivateKeyFileLocation))
     {
         throw new OperationConfigException(string.Format("Missing value for PrivateKeyFileLocation. Please specify in code or in config."));
     }
     if (options.RegionEndpoint == null)
     {
         throw new OperationConfigException(string.Format("Missing value for Region. Please specify in code or in config."));
     }
     if (options.Credentials == null)
     {
         throw new OperationConfigException(string.Format("Missing value for Credentials. Please specify in code or in config."));
     }
 }
コード例 #2
0
 public AwsIdentifiedOperation(IOfferAwsOperationsOptionValues options)
 {
     this._options = options;
 }