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

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

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("keySet/item", targetDepth))
                    {
                        response.KeyPairs.Add(KeyPairInfoUnmarshaller.GetInstance().Unmarshall(context));

                        continue;
                    }
                }
            }


            return(response);
        }