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

            return(instance);
        }
Exemple #2
0
        public CancelJobResponse Unmarshall(UnmarshallerContext context)
        {
            CancelJobResponse response = new CancelJobResponse();

            while (context.Read())
            {
                if (context.IsStartElement)
                {
                    if (context.TestExpression("CancelJobResult", 2))
                    {
                        response.CancelJobResult = CancelJobResultUnmarshaller.GetInstance().Unmarshall(context);
                        continue;
                    }
                    if (context.TestExpression("ResponseMetadata", 2))
                    {
                        response.ResponseMetadata = ResponseMetadataUnmarshaller.GetInstance().Unmarshall(context);
                    }
                }
            }

            return(response);
        }