Пример #1
0
        public string RequiredPostJson()
        {
            Debug.Assert(_requestInfo.HttpMethod == HttpMethods.Post);
            var json = _requestInfo.GetPostJson();

            if (!string.IsNullOrWhiteSpace(json))
            {
                return(json);
            }
            throw new ApplicationException("The query " + _requestInfo.RawUrl + " should have post json");
        }
Пример #2
0
        public string GetPostJson()
        {
            Debug.Assert(_requestInfo.HttpMethod == HttpMethods.Post, "Expected HttpMethod to be Post but instead got: " + _requestInfo.HttpMethod.ToString());

            return(_requestInfo.GetPostJson());
        }