private object GetRequest(IHttpRequest httpReq, IRestPath restPath)
{
var requestParams = httpReq.GetRequestParams();
object requestDto = null;
if (!string.IsNullOrEmpty(httpReq.ContentType) && httpReq.ContentLength > 0)
{
var requestDeserializer = GetContentFilters().GetStreamDeserializer(httpReq.ContentType);
if (requestDeserializer != null)
{
requestDto = requestDeserializer(restPath.RequestType, httpReq.InputStream);
}
}
return restPath.CreateRequest(httpReq.PathInfo, requestParams, requestDto);
}