//获取请求消息提数据
Stream stream = filterContext.Request.Content.ReadAsStreamAsync().Result;
Encoding encoding = Encoding.UTF8;
stream.Position = 0;
using (var reader = new StreamReader(stream, encoding))
{
Log.Info(reader.ReadToEnd());
}
//获取请求消息提数据
Stream stream = filterContext.Request.Content.ReadAsStreamAsync().Result;
Encoding encoding = Encoding.UTF8;
stream.Position = 0;
using (var reader = new StreamReader(stream, encoding))
{
Log.Info(reader.ReadToEnd());
}