Skip to content

Instantly share code, notes, and snippets.

@renatocantarino
Created June 19, 2013 14:37
Show Gist options
  • Save renatocantarino/5814822 to your computer and use it in GitHub Desktop.
Save renatocantarino/5814822 to your computer and use it in GitHub Desktop.
Global.asx
using System;
using System.ServiceModel.Activation;
using System.Web.Routing;
namespace appRest
{
public class Global : System.Web.HttpApplication
{
protected void Application_Start(object sender, EventArgs e)
{
RouteTable.Routes.Add(new ServiceRoute("RestService", new WebServiceHostFactory(), typeof(Service1)));
}
protected void Session_Start(object sender, EventArgs e)
{
}
protected void Application_BeginRequest(object sender, EventArgs e)
{
}
protected void Application_AuthenticateRequest(object sender, EventArgs e)
{
}
protected void Application_Error(object sender, EventArgs e)
{
}
protected void Session_End(object sender, EventArgs e)
{
}
protected void Application_End(object sender, EventArgs e)
{
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment