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

Enable Visual Studio to use more than 2GB of memory

Firefox and Chrome dark mode

Dealing with the morons who built Dell 7710 and RAID