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

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

private static UnmarshallResult ( JsonUnmarshallerContext context, ReportTaskProgressResponse response ) : void
context Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext
response Amazon.DataPipeline.Model.ReportTaskProgressResponse
Результат void
        private static void UnmarshallResult(JsonUnmarshallerContext context,ReportTaskProgressResponse response)
        {
          
            int originalDepth = context.CurrentDepth;
            int targetDepth = originalDepth + 1;
            while (context.Read())
            {
              
              if (context.TestExpression("canceled", targetDepth))
              {
                context.Read();
                response.Canceled = BoolUnmarshaller.GetInstance().Unmarshall(context);
                continue;
              }
  
                if (context.CurrentDepth <= originalDepth)
                {                   
                    return;
                }
            }
                        
            return;
        }