Amazon.EC2.Model.Internal.MarshallTransformations.CreateEgressOnlyInternetGatewayResponseUnmarshaller.Unmarshall C# (CSharp) Метод

Unmarshall() публичный Метод

Unmarshaller the response from the service to the response class.
public Unmarshall ( Amazon.Runtime.Internal.Transform.XmlUnmarshallerContext context ) : AmazonWebServiceResponse
context Amazon.Runtime.Internal.Transform.XmlUnmarshallerContext
Результат Amazon.Runtime.AmazonWebServiceResponse
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            CreateEgressOnlyInternetGatewayResponse response = new CreateEgressOnlyInternetGatewayResponse();

            int originalDepth = context.CurrentDepth;
            int targetDepth = originalDepth + 1;
            if (context.IsStartOfDocument) 
               targetDepth = 2;

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {

                    if (context.TestExpression("clientToken", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.ClientToken = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("egressOnlyInternetGateway", targetDepth))
                    {
                        var unmarshaller = EgressOnlyInternetGatewayUnmarshaller.Instance;
                        response.EgressOnlyInternetGateway = unmarshaller.Unmarshall(context);
                        continue;
                    }
                } 
            }

            return response;
        }
CreateEgressOnlyInternetGatewayResponseUnmarshaller