Ejemplo n.º 1
0
        public async Task <GetTargetsResponse> GetTargets(GetTargetsRequest request)
        {
            var @params = new Requests.get_targets();

            if (null != request)
            {
                CopyPropertiesFrom(@params, request);
            }

            var result = await Omp.QueryAsync <Responses.get_targets_response>(this.Address, @params);

            return(result?.Beautify());
        }
Ejemplo n.º 2
0
 /// <summary>
 ///  查询子域名的可用监控对象
 /// </summary>
 /// <param name="request">请求参数信息</param>
 /// <returns>请求结果信息</returns>
 public async Task <GetTargetsResponse> GetTargets(GetTargetsRequest request)
 {
     return(await new GetTargetsExecutor().Client(this).Execute <GetTargetsResponse, GetTargetsResult, GetTargetsRequest>(request).ConfigureAwait(false));
 }
Ejemplo n.º 3
0
 /// <summary>
 ///  查询子域名的可用监控对象
 /// </summary>
 /// <param name="request">请求参数信息</param>
 /// <returns>请求结果信息</returns>
 public GetTargetsResponse GetTargets(GetTargetsRequest request)
 {
     return(new GetTargetsExecutor().Client(this).Execute <GetTargetsResponse, GetTargetsResult, GetTargetsRequest>(request));
 }