private static void UnmarshallResult(XmlUnmarshallerContext context, GetStreamingDistributionConfigResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
while (context.Read())
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("StreamingDistributionConfig", targetDepth))
{
var unmarshaller = StreamingDistributionConfigUnmarshaller.Instance;
response.StreamingDistributionConfig = unmarshaller.Unmarshall(context);
continue;
}
}
else if (context.IsEndElement && context.CurrentDepth < originalDepth)
{
return;
}
}
return;
}