How to read the web responses from the results of the Amazon .NET API

Modify the source code to get this ability:

AWSSDK_DotNet35\Amazon.Runtime\AmazonWebServiceResponse.cs

- Add a property to hold the HttpWebResponse object.

awssdk_dotnet35\amazon.runtime\internal\transform\httpwebrequestresponsedata.cs

- Add a property to hold the HttpWebResponse object.

AWSSDK_DotNet35\Amazon.Runtime\Internal\Transform\IWebResponseData.cs

- Add a property to hold the HttpWebResponse object.

There are a series of classes which transfer the data from the internal objects to the output objects within the API:

awssdk_dotnet35\amazon.s3\model\internal\marshalltransformations\deleteobjectresponseunmarshaller.cs
private static void UnmarshallResult(XmlUnmarshallerContext context,DeleteObjectResponse response)

awssdk_dotnet35\amazon.s3\model\internal\marshalltransformations\putobjectresponseunmarshaller.cs
private static void UnmarshallResult(XmlUnmarshallerContext context,PutObjectResponse response)

awssdk_dotnet35\amazon.s3\model\internal\marshalltransformations\getobjectresponseunmarshaller.cs
private static void UnmarshallResult(XmlUnmarshallerContext context,GetObjectResponse response)

Modify these methods so we can pass the response object to within the object returned by the API:

response.WebResponse = context.ResponseData.WebResponse;

Comments

Popular posts from this blog

Tutorial: Using Google Cloud Storage from C# and .NET

Late 2008 Macbook only giving 1.5 gb/s speed with 6 gb/s Intel SSD?

The ridiculous interview experience