SendRequestRequest GetRequestInfo() { // Get the Json from the POST. string strJson = String.Empty; HttpContext context = HttpContext.Current; context.Request.InputStream.Position = 0; using (StreamReader inputStream = new StreamReader(context.Request.InputStream)) { strJson = inputStream.ReadToEnd(); } // Deserialize the Json. SendRequestRequest req = JsonConvert.DeserializeObject <SendRequestRequest>(strJson); return(req); }
public SendRequestResponse SendRequest(SendRequestRequest request) { throw new NotImplementedException(); }
public SendRequestResponse SendRequest(SendRequestRequest request) { return(new SendRequestResponse()); //throw new NotImplementedException(); }