/// <summary> /// 检查域名是否可以注册 /// </summary> /// <param name="req"><see cref="CheckDomainRequest"/></param> /// <returns><see cref="CheckDomainResponse"/></returns> public CheckDomainResponse CheckDomainSync(CheckDomainRequest req) { JsonResponseModel <CheckDomainResponse> rsp = null; try { var strResp = this.InternalRequestSync(req, "CheckDomain"); rsp = JsonConvert.DeserializeObject <JsonResponseModel <CheckDomainResponse> >(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return(rsp.Response); }
/// <summary> /// 检查域名是否可以注册 /// </summary> /// <param name="request">请求参数信息</param> /// <returns>请求结果信息</returns> public async Task <CheckDomainResponse> CheckDomain(CheckDomainRequest request) { return(await new CheckDomainExecutor().Client(this).Execute <CheckDomainResponse, CheckDomainResult, CheckDomainRequest>(request).ConfigureAwait(false)); }
/// <summary> /// 检查域名是否可以注册 /// </summary> /// <param name="request">请求参数信息</param> /// <returns>请求结果信息</returns> public CheckDomainResponse CheckDomain(CheckDomainRequest request) { return(new CheckDomainExecutor().Client(this).Execute <CheckDomainResponse, CheckDomainResult, CheckDomainRequest>(request)); }