Skip to content

Instantly share code, notes, and snippets.

@marckm
Last active December 16, 2015 06:49
Show Gist options
  • Save marckm/5394668 to your computer and use it in GitHub Desktop.
Save marckm/5394668 to your computer and use it in GitHub Desktop.
Default Global.asax content for WebApi
namespace DataIntegrationService.WebApi
{
using System;
using System.Web.Http;
/// <summary>
/// Global configuration of the Web Application.
/// </summary>
public class Global : System.Web.HttpApplication
{
/// <summary>
/// Handles the Start event of the Application control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
protected void Application_Start(object sender, EventArgs e)
{
WebApiConfig.Register(GlobalConfiguration.Configuration);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment