Skip to content

Instantly share code, notes, and snippets.

@ajtowf
Created April 30, 2013 16:03
Show Gist options
  • Save ajtowf/5489680 to your computer and use it in GitHub Desktop.
Save ajtowf/5489680 to your computer and use it in GitHub Desktop.
WebApi Global.asax
public class MvcApplication : HttpApplication
{
protected void Application_Start()
{
...
GlobalConfiguration.Configuration.MessageHandlers.Add(new OptionsHandler());
GlobalConfiguration.Configuration.MessageHandlers.Add(new MethodOverrideHandler());
GlobalConfiguration.Configuration.Formatters.Insert(0, new TypedXmlMediaTypeFormatter ...);
GlobalConfiguration.Configuration.Formatters.Insert(0, new TypedJsonMediaTypeFormatter ...);
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment