Exemplo n.º 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);
     }
 }
Exemplo n.º 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));
        }
Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
     }
 }
Exemplo n.º 5
0
 private IList<RouteValue> ReadPropertiesFromBodyContent(HttpRequestBase request, BodyFormat bodyFormat)
 {
     var body = GetRequestBody(request);
     var bodyReader = new BodyReader();
     return bodyReader.ReadBody(body, bodyFormat);
 }