public static InstanceMonitoringUnmarshaller GetInstance()
        {
            if (instance == null)
            {
                instance = new InstanceMonitoringUnmarshaller();
            }

            return(instance);
        }
예제 #2
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            MonitorInstancesResponse response = new MonitorInstancesResponse();

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("instancesSet/item", targetDepth))
                    {
                        response.InstanceMonitorings.Add(InstanceMonitoringUnmarshaller.GetInstance().Unmarshall(context));

                        continue;
                    }
                }
            }


            return(response);
        }