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"); }
public string GetPostJson() { Debug.Assert(_requestInfo.HttpMethod == HttpMethods.Post, "Expected HttpMethod to be Post but instead got: " + _requestInfo.HttpMethod.ToString()); return(_requestInfo.GetPostJson()); }