private static void UnmarshallResult(XmlUnmarshallerContext context, CreateDomainResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("DomainStatus", targetDepth)) { response.DomainStatus = DomainStatusUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return; } } return; }
public DescribeDomainsResult Unmarshall(XmlUnmarshallerContext context) { DescribeDomainsResult describeDomainsResult = new DescribeDomainsResult(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("DomainStatusList/member", targetDepth)) { describeDomainsResult.DomainStatusList.Add(DomainStatusUnmarshaller.GetInstance().Unmarshall(context)); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(describeDomainsResult); } } return(describeDomainsResult); }
public CreateDomainResult Unmarshall(XmlUnmarshallerContext context) { CreateDomainResult createDomainResult = new CreateDomainResult(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("DomainStatus", targetDepth)) { createDomainResult.DomainStatus = DomainStatusUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(createDomainResult); } } return(createDomainResult); }
public static DomainStatusUnmarshaller GetInstance() { if (instance == null) { instance = new DomainStatusUnmarshaller(); } return(instance); }