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)); }
public static DescribeInstanceTypesResponse Deserialize(string text) { return(Ec2Serializer <DescribeInstanceTypesResponse> .Deserialize(text)); }