更新时间:2023-02-20 10:52:37
FormatterContext
在被删除MVC4
RC版
请参见发行说明:发行说明
来自: MSDN论坛
格式化改进:在MediaTypeFormatter的方法现在是
大众能够自定义格式的单元测试。单一格式
现在可以支持多种文字编码。使用
BufferedMediaTypeFormatter实现简单的同步格式
支持。 FormatterContext已被移除。为了访问
从格式化器服务器上的请求执行
GetPerRequestFormatterInstance。
Formatter improvements: The methods on MediaTypeFormatter are now public to enable unit testing of custom formatters. A single formatter can now support multiple text encodings. Use BufferedMediaTypeFormatter to implement simple synchronous formatting support. FormatterContext has been removed. To get access to the request from a formatter on the server implement GetPerRequestFormatterInstance.