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

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

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("vpnConnectionSet/item", targetDepth))
                    {
                        response.VpnConnections.Add(VpnConnectionUnmarshaller.GetInstance().Unmarshall(context));

                        continue;
                    }
                }
            }


            return(response);
        }