| | |
| | | using Newtonsoft.Json.Converters; |
| | | using JiangSu.cs; |
| | | using Newtonsoft.Json.Converters; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Web.Http; |
| | | using System.Web.Http.Hosting; |
| | | |
| | | namespace JiangSu |
| | | { |
| | |
| | | defaults: new { id = RouteParameter.Optional } |
| | | ); |
| | | |
| | | // 注册扩展主机缓存Policy |
| | | GlobalConfiguration.Configuration.Services.Replace(typeof(IHostBufferPolicySelector), new NoBufferPolicySelector()); |
| | | |
| | | // 屏蔽返回XML格式 |
| | | GlobalConfiguration.Configuration.Formatters.XmlFormatter.SupportedMediaTypes.Clear(); |
| | | |