Asp.Net WebApi 移除XML Formatter

Asp.Net WebApi 移除XML Formatter,减少性能损耗

 public class WebApiApplication : System.Web.HttpApplication
  {
    protected void Application_Start()
    {
      GlobalConfiguration.Configure(Register);
    }
    public static void Register(HttpConfiguration config)
    {
      config.Formatters.Remove(config.Formatters.XmlFormatter);
    }
  }