protected void Application_Start() { var name = System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase); ServiceLogger.Informational(String.Format("{0} was started, host assembly: {1}", name, Assembly.GetExecutingAssembly().FullName)); // Logging of the unhandled exceptions AppDomain.CurrentDomain.UnhandledException += CurrentDomainUnhandledException; AreaRegistration.RegisterAllAreas(); RegisterGlobalFilters(GlobalFilters.Filters); RegisterRoutes(RouteTable.Routes); PTCore.StartUp(name); }
protected void Application_End() { PTCore.Terminate(); ServiceLogger.Informational("Exiting application"); }