Exemple #1
0
        public static DhcpOptionsUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new DhcpOptionsUnmarshaller();
            }

            return(instance);
        }
Exemple #2
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            DescribeDhcpOptionsResponse response = new DescribeDhcpOptionsResponse();

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("dhcpOptionsSet/item", targetDepth))
                    {
                        response.DhcpOptions.Add(DhcpOptionsUnmarshaller.GetInstance().Unmarshall(context));

                        continue;
                    }
                }
            }


            return(response);
        }