C# Class RockWeb.Global

Inheritance: System.Web.HttpApplication
Show file Open project: NewSpring/Rock

Public Properties

Property Type Description
QueueInUse bool

Public Methods

Method Description
AddCallBack ( ) : void

Adds the call back.

CacheItemRemoved ( string k, object v, CacheItemRemovedReason r ) : void

Caches the item removed.

DrainTransactionQueue ( ) : void

Drains the transaction queue.

MigrateDatabase ( RockContext rockContext ) : bool

Migrates the database.

MigratePlugins ( RockContext rockContext ) : bool

Migrates the plugins.

RunStartups ( ) : void

Run any custom startup methods

Protected Methods

Method Description
Application_AuthenticateRequest ( object sender, EventArgs e ) : void

Handles the AuthenticateRequest event of the Application control.

Application_BeginRequest ( object sender, EventArgs e ) : void

Handles the BeginRequest event of the Application control.

Application_End ( object sender, EventArgs e ) : void

Handles the End event of the Application control.

Application_Error ( object sender, EventArgs e ) : void

Handles the Error event of the Application control.

Application_PreSendRequestHeaders ( ) : void

Handles the Pre Send Request event of the Application control.

Application_Start ( object sender, EventArgs e ) : void

Handles the Start event of the Application control.

Session_End ( object sender, EventArgs e ) : void

Handles the End event of the Session control.

Session_Start ( object sender, EventArgs e ) : void

Handles the Start event of the Session control.

Private Methods

Method Description
FormatException ( Exception ex, string exLevel ) : string
LoadCacheObjects ( RockContext rockContext ) : void

Loads the cache objects.

LogError ( Exception ex, HttpContext context ) : void

Logs the error to database

LogMessage ( string fileName, string message ) : void
MarkOnlineUsersOffline ( ) : void

Adds the call back.

RegisterRoutes ( RockContext rockContext, RouteCollection routes ) : void

Registers the routes.

SendNotification ( Exception ex ) : void

Sends the notification.

SetError66 ( ) : void

Sets flag for serious error

Method Details

AddCallBack() public static method

Adds the call back.
public static AddCallBack ( ) : void
return void

Application_AuthenticateRequest() protected method

Handles the AuthenticateRequest event of the Application control.
protected Application_AuthenticateRequest ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

Application_BeginRequest() protected method

Handles the BeginRequest event of the Application control.
protected Application_BeginRequest ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

Application_End() protected method

Handles the End event of the Application control.
protected Application_End ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

Application_Error() protected method

Handles the Error event of the Application control.
protected Application_Error ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

Application_PreSendRequestHeaders() protected method

Handles the Pre Send Request event of the Application control.
protected Application_PreSendRequestHeaders ( ) : void
return void

Application_Start() protected method

Handles the Start event of the Application control.
protected Application_Start ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

CacheItemRemoved() public static method

Caches the item removed.
public static CacheItemRemoved ( string k, object v, CacheItemRemovedReason r ) : void
k string The k.
v object The v.
r CacheItemRemovedReason The r.
return void

DrainTransactionQueue() public static method

Drains the transaction queue.
public static DrainTransactionQueue ( ) : void
return void

MigrateDatabase() public method

Migrates the database.
public MigrateDatabase ( RockContext rockContext ) : bool
rockContext RockContext
return bool

MigratePlugins() public method

Migrates the plugins.
/// Could not connect to the SQL database! Please check the 'RockContext' connection string in the web.ConnectionString.config file. /// or ///
public MigratePlugins ( RockContext rockContext ) : bool
rockContext RockContext The rock context.
return bool

RunStartups() public method

Run any custom startup methods
public RunStartups ( ) : void
return void

Session_End() protected method

Handles the End event of the Session control.
protected Session_End ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

Session_Start() protected method

Handles the Start event of the Session control.
protected Session_Start ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

Property Details

QueueInUse public static property

The queue in use
public static bool QueueInUse
return bool