Exemplo n.º 1
0
        public async Task <Stream> Post([FromBody] string body)
        {
            var requestData = body;

            var doc = XDocument.Parse(body);

            Stream result = null;

            if (doc.IsMessageTypeOf("GetRequestRequest"))
            {
                result = await _requestHandlers.GetRequest(body);
            }

            if (doc.IsMessageTypeOf("GetResponseRequest"))
            {
                result = await _requestHandlers.GetResponse(body);
            }

            return(result);
        }