Actually, we use ASP.NET 4.5 (VS 2013) and want to replace Global.asax.cs with new Startup.cs file, which comes from OWIN specification.
We log the start and the end of application using Application_Start and Application_End handlers in this way:
protected void Application_Start(object sender, EventArgs e)
{
_log.Info("The app starts.");
}
protected void Application_End(object sender, EventArgs e)
{
_log.Info("The app ends.");
}
But, as I know there is no such handlers in the new Startup.cs file. So, my question is - how can we do that?