title: How to custom endpoint using aws-sdk net?
body: <p>Does anyone konw how to add custom endpoint using s3 net API??<br>
  Detail：<a href="https://github.com/aws/aws-sdk-net/issues/1283" rel="nofollow noreferrer">https://github.com/aws/aws-sdk-net/issues/1283</a>
  code Language:C#</p>
  
  <p>the sServiceUrl value="192.168.199.216:7480"</p>
  
  <p>when i call DoesS3BucketExist function,i reviced a Exception（System.UriFormatException）</p>
  
  <p>This is my code</p>
  
  <pre><code>        public IAmazonS3 CreateClient(string sAccessKeyId, string sAccessKeySecret, string sServiceUrl)
          {
              AmazonS3Client s3Client = null;
              try
              {
                  AmazonS3Config config = new AmazonS3Config();
                  config.ServiceURL = sServiceUrl;
                  config.UseHttp = false;
                  config.SignatureVersion = "v4";
                  AWSConfigsS3.UseSignatureVersion4 = true;
  
                  s3Client = new AmazonS3Client(
                          sAccessKeyId,
                          sAccessKeySecret,
                          config
                          );
              }
              catch (Exception ex)
              {
                  LogHelper.WriteLog("AWS配置", ex, "创建AmazonS3Client失败！");
              }
              return s3Client;
          }
  
  public bool DoesBucketExist(string bucketName)
  {
      bool bIsExist;
      if (this.Client != null)
      {
          bIsExist = this.Client.DoesS3BucketExist(bucketName);
      }
      else
      {
          bIsExist = false;
      }
      return bIsExist;
  }
  </code></pre>
  
  <p>i want to set this property <code>AWSConfigs.EndpointDefinition = @"c:pathtoendpoints.xml";</code>,but i don't know how to custom endpoints.json file.</p>
  
  <p>it's so hard to me,maybe i need a god help me!Any Help will appreciated！ </p>