Amazon.ElasticBeanstalk.Model.Internal.MarshallTransformations.UpdateApplicationResourceLifecycleResponseUnmarshaller.UnmarshallResult C# (CSharp) Method

UnmarshallResult() private static method

private static UnmarshallResult ( Amazon.Runtime.Internal.Transform.XmlUnmarshallerContext context, UpdateApplicationResourceLifecycleResponse response ) : void
context Amazon.Runtime.Internal.Transform.XmlUnmarshallerContext
response Amazon.ElasticBeanstalk.Model.UpdateApplicationResourceLifecycleResponse
return void
        private static void UnmarshallResult(XmlUnmarshallerContext context, UpdateApplicationResourceLifecycleResponse 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("ApplicationName", targetDepth))
                    {
                        var unmarshaller = StringUnmarshaller.Instance;
                        response.ApplicationName = unmarshaller.Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("ResourceLifecycleConfig", targetDepth))
                    {
                        var unmarshaller = ApplicationResourceLifecycleConfigUnmarshaller.Instance;
                        response.ResourceLifecycleConfig = unmarshaller.Unmarshall(context);
                        continue;
                    }
                } 
           }

            return;
        }
UpdateApplicationResourceLifecycleResponseUnmarshaller