Amazon.OpsWorks.Model.Internal.MarshallTransformations.DescribeElasticLoadBalancersResponseUnmarshaller.UnmarshallResult C# (CSharp) 메소드

UnmarshallResult() 개인적인 정적인 메소드

private static UnmarshallResult ( JsonUnmarshallerContext context, DescribeElasticLoadBalancersResponse response ) : void
context Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext
response Amazon.OpsWorks.Model.DescribeElasticLoadBalancersResponse
리턴 void
        private static void UnmarshallResult(JsonUnmarshallerContext context,DescribeElasticLoadBalancersResponse response)
        {
          
            int originalDepth = context.CurrentDepth;
            int targetDepth = originalDepth + 1;
            while (context.Read())
            {
              
              if (context.TestExpression("ElasticLoadBalancers", targetDepth))
              {
                context.Read();
                response.ElasticLoadBalancers = new List<ElasticLoadBalancer>();
                        ElasticLoadBalancerUnmarshaller unmarshaller = ElasticLoadBalancerUnmarshaller.GetInstance();
                while (context.Read())
                {
                  JsonToken token = context.CurrentTokenType;                
                  if (token == JsonToken.ArrayStart)
                  {
                    continue;
                  }
                  if (token == JsonToken.ArrayEnd)
                  {
                    break;
                  }
                   response.ElasticLoadBalancers.Add(unmarshaller.Unmarshall(context));
                }
                continue;
              }
  
                if (context.CurrentDepth <= originalDepth)
                {                   
                    return;
                }
            }
                        
            return;
        }                        
        
DescribeElasticLoadBalancersResponseUnmarshaller