C# Class formulate.app.Handlers.ApplicationStartedHandler

Handles the application started event.
Inheritance: Umbraco.Core.ApplicationEventHandler
Mostra file Open project: rhythmagency/formulate

Private Properties

Property Type Description
AddConfigurationGroup void
AddDashboard void
AddFormulateDeveloperTab void
AddSection void
AddServerVariables void
ApplicationStartedHandler System
DashboardExists bool
EnsureVersion void
FormulateDeveloperTabExists bool
GetInstalledVersion string
HandleInstall void
HandleInstallAndUpgrade void
HandleInstallTimerElapsed void
InitializeDatabase void
PermitAccess void
QueueInstallAction void

Protected Methods

Method Description
ApplicationStarted ( Umbraco.Core.UmbracoApplicationBase umbracoApplication, Umbraco.Core.ApplicationContext applicationContext ) : void

Application started.

Private Methods

Method Description
AddConfigurationGroup ( ) : void

Transforms the web.config to add the Formulate configuration group.

AddDashboard ( ) : void

Adds the Formulate dashboard to the Formulate section.

AddFormulateDeveloperTab ( ) : void

Adds the "Formulate" tab to the developer section of the dashboard.config.

AddSection ( Umbraco.Core.ApplicationContext applicationContext ) : void

Adds the Formulate section to Umbraco.

AddServerVariables ( object sender, object>.Dictionary e ) : void

Adds server variables for use by the JavaScript.

ApplicationStartedHandler ( ) : System

Static constructor.

DashboardExists ( ) : bool

Indicates whether or not the "FormulateSection" exists in the dashboard.config.

EnsureVersion ( ) : void

Adds or replaces the Formulate version number in the web.config.

FormulateDeveloperTabExists ( ) : bool

Indicates whether or not the "Formulate" installation tab exists in the developer section of the dashboard.config.

GetInstalledVersion ( ) : string

Gets the installed version.

HandleInstall ( Umbraco.Core.ApplicationContext applicationContext ) : void

Handles install operations.

HandleInstallAndUpgrade ( Umbraco.Core.ApplicationContext applicationContext ) : void

Handles install and upgrade operations.

HandleInstallTimerElapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void

Once the install timer elapses, run the install actions.

InitializeDatabase ( Umbraco.Core.ApplicationContext applicationContext ) : void

Modifies the database (e.g., adding necessary tables).

PermitAccess ( ) : void

Permits all users to access Formulate if configured in the web.config.

QueueInstallAction ( System.Action action ) : void

Queues an install action to be run in a few seconds.

Method Details

ApplicationStarted() protected method

Application started.
protected ApplicationStarted ( Umbraco.Core.UmbracoApplicationBase umbracoApplication, Umbraco.Core.ApplicationContext applicationContext ) : void
umbracoApplication Umbraco.Core.UmbracoApplicationBase
applicationContext Umbraco.Core.ApplicationContext
return void