protected void Application_Start() { AreaRegistration.RegisterAllAreas(); RegisterGlobalFilters(GlobalFilters.Filters); RegisterRoutes(RouteTable.Routes); TeamWiSE.TAA.Web.Application.SessionResume += ApplicationOnSessionResume; TeamWiSE.TAA.Web.Application.SessionSuspend += ApplicationOnSessionSuspend; } protected void Application_End() { TeamWiSE.TAA.Web.Application.SessionResume -= ApplicationOnSessionResume; TeamWiSE.TAA.Web.Application.SessionSuspend -= ApplicationOnSessionSuspend; } private void ApplicationOnSessionResume(object sender, SessionEventArgs e) { TeamWiSE.TAA.Services.Info.Send("Session resume for " + e.ModlEnv.Name + "." + e.ModlEnv.ActiveEvent); } private void ApplicationOnSessionSuspend(object sender, SessionEventArgs e) { TeamWiSE.TAA.Services.Info.Send("Session suspend for " + e.ModlEnv.Name + "." + e.ModlEnv.ActiveEvent); }