public ListDistributionsResult Unmarshall(XmlUnmarshallerContext context)
        {
            ListDistributionsResult listDistributionsResult = new ListDistributionsResult();
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("DistributionList", targetDepth))
                    {
                        listDistributionsResult.DistributionList = DistributionListUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                }
                else if (context.IsEndElement && context.CurrentDepth < originalDepth)
                {
                    return(listDistributionsResult);
                }
            }



            return(listDistributionsResult);
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, ListDistributionsResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("DistributionList", targetDepth))
                    {
                        response.DistributionList = DistributionListUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                }
                else if (context.IsEndElement && context.CurrentDepth < originalDepth)
                {
                    return;
                }
            }



            return;
        }
Exemple #3
0
        public static DistributionListUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new DistributionListUnmarshaller();
            }

            return(instance);
        }