Table of Contents

Class EC2UnmarshallerContext

Namespace
Amazon.Runtime.Internal.Transform
Assembly
AWSSDK.Core.dll
public class EC2UnmarshallerContext : XmlUnmarshallerContext, IDisposable
Inheritance
EC2UnmarshallerContext
Implements
Inherited Members

Constructors

EC2UnmarshallerContext(Stream, bool, IWebResponseData, bool)

Wrap an XmlTextReader with state for event-based parsing of an XML stream.

public EC2UnmarshallerContext(Stream responseStream, bool maintainResponseBody, IWebResponseData responseData, bool isException = false)

Parameters

responseStream Stream

Stream with the XML from a service response.

maintainResponseBody bool

If set to true, maintains a copy of the complete response body constraint to log response size as the stream is being read.

responseData IWebResponseData

Response data coming back from the request

isException bool

If set to true, maintains a copy of the complete response body as the stream is being read.

EC2UnmarshallerContext(Stream, bool, IWebResponseData, bool, IRequestContext)

Wrap an XmlTextReader with state for event-based parsing of an XML stream.

public EC2UnmarshallerContext(Stream responseStream, bool maintainResponseBody, IWebResponseData responseData, bool isException, IRequestContext requestContext)

Parameters

responseStream Stream

Stream with the XML from a service response.

maintainResponseBody bool

If set to true, maintains a copy of the complete response body constraint to log response size as the stream is being read.

responseData IWebResponseData

Response data coming back from the request

isException bool

If set to true, maintains a copy of the complete response body as the stream is being read.

requestContext IRequestContext

Context for the request that produced this response

Properties

RequestId

RequestId value, if found in response

public string RequestId { get; }

Property Value

string

Methods

Read()

Reads to the next node in the XML document, and updates the context accordingly. If node is RequestId, reads the contents and stores in RequestId property.

public override bool Read()

Returns

bool

True if a node was read, false if there are no more elements to read./