Created
June 19, 2013 14:37
-
-
Save renatocantarino/5814822 to your computer and use it in GitHub Desktop.
Global.asx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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