//获取请求消息提数据 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()); }
本文转自左正博客园博客,原文链接:http://www.cnblogs.com/soundcode/p/4894147.html,如需转载请自行联系原作者