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;
}