Amazon.ElasticBeanstalk.Model.Internal.MarshallTransformations.DescribeEnvironmentManagedActionHistoryResponseUnmarshaller.UnmarshallResult C# (CSharp) Метод

UnmarshallResult() приватный статический Метод

private static UnmarshallResult ( Amazon.Runtime.Internal.Transform.XmlUnmarshallerContext context, DescribeEnvironmentManagedActionHistoryResponse response ) : void
context Amazon.Runtime.Internal.Transform.XmlUnmarshallerContext
response Amazon.ElasticBeanstalk.Model.DescribeEnvironmentManagedActionHistoryResponse
Результат void
        private static void UnmarshallResult(XmlUnmarshallerContext context, DescribeEnvironmentManagedActionHistoryResponse response)
        {
            
            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("ManagedActionHistoryItems/member", targetDepth))
                    {
                        var unmarshaller = ManagedActionHistoryItemUnmarshaller.Instance;
                        var item = unmarshaller.Unmarshall(context);
                        response.ManagedActionHistoryItems.Add(item);
                        continue;
                    }
                    if (context.TestExpression("NextToken", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.NextToken = unmarshaller.Unmarshall(context);
                        continue;
                    }
                } 
           }

            return;
        }
DescribeEnvironmentManagedActionHistoryResponseUnmarshaller