示例#1
0
        private async Task <TResponse> SendAsync <TResponse>(IEc2Request request)
            where TResponse : IEc2Response
        {
            var httpRequest = new HttpRequestMessage(HttpMethod.Post, Endpoint)
            {
                Content = GetPostContent(request.ToParams())
            };

            string responseXml = await SendAsync(httpRequest).ConfigureAwait(false);

            return(Ec2Serializer <TResponse> .Deserialize(responseXml));
        }
示例#2
0
 public static DescribeInstanceTypesResponse Deserialize(string text)
 {
     return(Ec2Serializer <DescribeInstanceTypesResponse> .Deserialize(text));
 }