C# Класс RockWeb.Global

Наследование: System.Web.HttpApplication
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
QueueInUse bool

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

AddCallBack() публичный статический Метод

Adds the call back.
public static AddCallBack ( ) : void
Результат void

Application_AuthenticateRequest() защищенный Метод

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.
Результат void

Application_BeginRequest() защищенный Метод

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.
Результат void

Application_End() защищенный Метод

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.
Результат void

Application_Error() защищенный Метод

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.
Результат void

Application_PreSendRequestHeaders() защищенный Метод

Handles the Pre Send Request event of the Application control.
protected Application_PreSendRequestHeaders ( ) : void
Результат void

Application_Start() защищенный Метод

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.
Результат void

CacheItemRemoved() публичный статический Метод

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.
Результат void

DrainTransactionQueue() публичный статический Метод

Drains the transaction queue.
public static DrainTransactionQueue ( ) : void
Результат void

MigrateDatabase() публичный Метод

Migrates the database.
public MigrateDatabase ( RockContext rockContext ) : bool
rockContext RockContext
Результат bool

MigratePlugins() публичный Метод

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.
Результат bool

RunStartups() публичный Метод

Run any custom startup methods
public RunStartups ( ) : void
Результат void

Session_End() защищенный Метод

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.
Результат void

Session_Start() защищенный Метод

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.
Результат void

Описание свойств

QueueInUse публичное статическое свойство

The queue in use
public static bool QueueInUse
Результат bool