Provides tools for starting and shutting down the wiki engine.
Exemplo n.º 1
0
        protected void Application_BeginRequest(object sender, EventArgs e)
        {
            if (Application["StartupOK"] == null)
            {
                Application.Lock( );
                if (Application["StartupOK"] == null)
                {
                    // Setup Resource Exchanger
                    Exchanger.ResourceExchanger = new ResourceExchanger( );
                    StartupTools.Startup( );

                    // All is OK, proceed with normal startup operations
                    Application["StartupOK"] = "OK";
                }
                Application.UnLock( );
            }

            RouteCurrentRequest( );
        }
Exemplo n.º 2
0
 protected void Application_End(object sender, EventArgs e)
 {
     // Try to cleanly shutdown the application and providers
     StartupTools.Shutdown( );
 }