Themelia Pro A powerful new development platform built on ASP.NET.
 
Understanding Global Application Processors
 
 

Global application processors run when the application session begins and when the application ends. These events map to the OnStartup and OnShutdown methods, respectively.

These are created by building a class that inherits from the Themelia.Web.SessionApplicationProcessorBase abstract class. Below is an example:

namespace Sample.Web
{
    public class GlobalApplicationProcessor : Themelia.Web.GlobalApplicationProcessorBase
    {
        //- @OnStartup -//
        public override void OnStartup()
        {
            //+ setup application here
        }
 
        //- @OnShutdown -//
        public override void OnShutdown()
        {
            //+ perform optional shutdown
        }
    }
}