Example #1
0
 private void ReadPropertiesFromBodyContent(HttpRequestBase request, Dictionary<string, string> actualProps)
 {
     var body = GetRequestBody(request);
     if (!string.IsNullOrEmpty(body))
     {
         var bodyReader = new BodyReader();
         bodyReader.ReadBody(body, actualProps);
     }
 }
Example #2
0
        private IList <RouteValue> ReadPropertiesFromBodyContent(BodyFormat bodyFormat)
        {
            var bodyTask = request.Content.ReadAsStringAsync();
            var body     = bodyTask.Result;

            var bodyReader = new BodyReader();

            return(bodyReader.ReadBody(body, bodyFormat));
        }
Example #3
0
        private void ReadPropertiesFromBodyContent(Dictionary <string, string> actualProps)
        {
            var bodyTask = request.Content.ReadAsStringAsync();
            var body     = bodyTask.Result;

            if (!string.IsNullOrEmpty(body))
            {
                var bodyReader = new BodyReader();
                bodyReader.ReadBody(body, actualProps);
            }
        }
Example #4
0
 private void ReadPropertiesFromBodyContent(Dictionary<string, string> actualProps)
 {
     var bodyTask = request.Content.ReadAsStringAsync();
     var body = bodyTask.Result;
     if (!string.IsNullOrEmpty(body))
     {
         var bodyReader = new BodyReader();
         bodyReader.ReadBody(body, actualProps);
     }
 }
Example #5
0
 private IList<RouteValue> ReadPropertiesFromBodyContent(HttpRequestBase request, BodyFormat bodyFormat)
 {
     var body = GetRequestBody(request);
     var bodyReader = new BodyReader();
     return bodyReader.ReadBody(body, bodyFormat);
 }