Пример #1
0
    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();
 }
Пример #3
0
 public SendRequestResponse SendRequest(SendRequestRequest request)
 {
     return(new SendRequestResponse());
     //throw new NotImplementedException();
 }