private static void UnmarshallResult(XmlUnmarshallerContext context,CreateInvalidationResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Invalidation", targetDepth)) { response.Invalidation = InvalidationUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return; } } IWebResponseData responseData = context.ResponseData; if (responseData.IsHeaderPresent("Location")) response.Location = responseData.GetHeaderValue("Location"); return; }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { CreateInvalidationResponse response = new CreateInvalidationResponse(); response.CreateInvalidationResult = CreateInvalidationResultUnmarshaller.GetInstance().Unmarshall(context); return response; }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { CreateInvalidationResponse response = new CreateInvalidationResponse(); UnmarshallResult(context,response); if (context.ResponseData.IsHeaderPresent("Location")) response.Location = context.ResponseData.GetHeaderValue("Location"); return response; }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { CreateInvalidationResponse response = new CreateInvalidationResponse(); UnmarshallResult(context,response); return response; }
private static void UnmarshallResult(XmlUnmarshallerContext context, CreateInvalidationResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("Invalidation", targetDepth)) { var unmarshaller = InvalidationUnmarshaller.Instance; response.Invalidation = unmarshaller.Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return; } } return; }