示例#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());
        }