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

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

            int targetDepth = 2;

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

                        continue;
                    }
                }
            }


            return(response);
        }