/// <summary>
        /// 创建订阅接口
        /// </summary>
        /// <param name="req"><see cref="CreateSubscribeRequest"/></param>
        /// <returns><see cref="CreateSubscribeResponse"/></returns>
        public CreateSubscribeResponse CreateSubscribeSync(CreateSubscribeRequest req)
        {
            JsonResponseModel <CreateSubscribeResponse> rsp = null;

            try
            {
                var strResp = this.InternalRequestSync(req, "CreateSubscribe");
                rsp = JsonConvert.DeserializeObject <JsonResponseModel <CreateSubscribeResponse> >(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 <CreateSubscribeResponse> CreateSubscribe(CreateSubscribeRequest request)
 {
     return(await new CreateSubscribeExecutor().Client(this).Execute <CreateSubscribeResponse, CreateSubscribeResult, CreateSubscribeRequest>(request).ConfigureAwait(false));
 }
예제 #3
0
 /// <summary>
 ///  创建日志消费
 /// </summary>
 /// <param name="request">请求参数信息</param>
 /// <returns>请求结果信息</returns>
 public CreateSubscribeResponse CreateSubscribe(CreateSubscribeRequest request)
 {
     return(new CreateSubscribeExecutor().Client(this).Execute <CreateSubscribeResponse, CreateSubscribeResult, CreateSubscribeRequest>(request));
 }