コード例 #1
0
        /// <summary>
        /// ModifyDomain接口用来修改应用型负载均衡七层监听器下的域名。
        /// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
        /// </summary>
        /// <param name="req">参考<see cref="ModifyDomainRequest"/></param>
        /// <returns>参考<see cref="ModifyDomainResponse"/>实例</returns>
        public async Task <ModifyDomainResponse> ModifyDomain(ModifyDomainRequest req)
        {
            JsonResponseModel <ModifyDomainResponse> rsp = null;

            try
            {
                var strResp = await this.InternalRequest(req, "ModifyDomain");

                rsp = JsonConvert.DeserializeObject <JsonResponseModel <ModifyDomainResponse> >(strResp);
            }
            catch (JsonSerializationException e)
            {
                throw new TencentCloudSDKException(e.Message);
            }
            return(rsp.Response);
        }
コード例 #2
0
 /// <summary>
 ///  修改主域名
 /// </summary>
 /// <param name="request">请求参数信息</param>
 /// <returns>请求结果信息</returns>
 public async Task <ModifyDomainResponse> ModifyDomain(ModifyDomainRequest request)
 {
     return(await new ModifyDomainExecutor().Client(this).Execute <ModifyDomainResponse, ModifyDomainResult, ModifyDomainRequest>(request).ConfigureAwait(false));
 }
コード例 #3
0
 /// <summary>
 ///  修改主域名
 /// </summary>
 /// <param name="request">请求参数信息</param>
 /// <returns>请求结果信息</returns>
 public ModifyDomainResponse ModifyDomain(ModifyDomainRequest request)
 {
     return(new ModifyDomainExecutor().Client(this).Execute <ModifyDomainResponse, ModifyDomainResult, ModifyDomainRequest>(request));
 }