Class Standard.Application
- Namespace
- Dynamicweb.Notifications
- Assembly
- Dynamicweb.dll
Provides notification names for Application.
public sealed class Standard.Application
- Inheritance
-
Standard.Application
- Inherited Members
Examples
using Dynamicweb;
namespace Dynamicweb.Examples.Notifications.Standard
{
[Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Notifications.Standard.Application.AfterDynamicwebStart)]
public class ApplicationStartObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
{
if (args == null)
return;
if (!(args is Dynamicweb.Notifications.Standard.Application.AfterDynamicwebStartArgs))
return;
Dynamicweb.Notifications.Standard.Application.AfterDynamicwebStartArgs item = (Dynamicweb.Notifications.Standard.Application.AfterDynamicwebStartArgs)args;
//Add code here
}
}
}
Fields
AfterBeginRequest
Application begin request notification. Occurs when application process the request
public const string AfterBeginRequest = "DWN_STANDARD_APPLICATION_AFTERBEGINREQUEST"
Field Value
Remarks
Event occurs when process the method Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs) in Global.asax.
The passed NotificationArgs is Dynamicweb.Notifications.Standard.Application.BeginRequestArgs
AfterDynamicwebStart
Application start notification. Occurs when Dynamicweb is finished with all setup, and only happens once.
public const string AfterDynamicwebStart = "DWN_STANDARD_APPLICATION_AFTERDYNAMICWEBSTART"
Field Value
Examples
using Dynamicweb;
namespace Dynamicweb.Examples.Notifications.Standard
{
[Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Notifications.Standard.Application.AfterDynamicwebStart)]
public class ApplicationStartObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
{
if (args == null)
return;
if (!(args is Dynamicweb.Notifications.Standard.Application.AfterDynamicwebStartArgs))
return;
Dynamicweb.Notifications.Standard.Application.AfterDynamicwebStartArgs item = (Dynamicweb.Notifications.Standard.Application.AfterDynamicwebStartArgs)args;
//Add code here
}
}
}
Remarks
Event occurs in Application_Start in Global.asax.
The passed NotificationArgs is Dynamicweb.Notifications.Standard.Application.AfterDynamicwebStartArgs
AfterPreRequestHandlerExecute
Application begin request notification. Occurs when application process the request
public const string AfterPreRequestHandlerExecute = "DWN_STANDARD_APPLICATION_AFTERPREREQUESTHANDLEREXECUTE"
Field Value
Remarks
Event occurs when process the method Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs) in Global.asax.
The passed NotificationArgs is Dynamicweb.Notifications.Standard.Application.BeginRequestArgs
AfterStart
Application prestart notification.
public const string AfterStart = "DWN_STANDARD_APPLICATION_AFTERSTART"
Field Value
Remarks
Event occurs in Application_Start in Global.asax.
The passed NotificationArgs is Dynamicweb.Notifications.Standard.Application.AfterStartArgs
AuthenticateRequest
Occurs when the current HTTP request is being authenticated.
public const string AuthenticateRequest = "DWN_STANDARD_APPLICATION_AUTHENTICATEREQUEST"
Field Value
BeforeBeginRequest
Application before prebegin request notification. Occurs as the first thing when application process the request
public const string BeforeBeginRequest = "DWN_STANDARD_APPLICATION_BEFOREBEGINREQUEST"
Field Value
Examples
Remarks
Event occurs when process the method Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs) in Global.asax.
The passed NotificationArgs is Dynamicweb.Notifications.Standard.Application.BeginRequestArgs
BeforeDynamicwebStart
Application before start notification.
public const string BeforeDynamicwebStart = "DWN_STANDARD_APPLICATION_BEFOREDYNAMICWEBSTART"
Field Value
Remarks
Event occurs in Application_Start in Global.asax.
The passed NotificationArgs is Dynamicweb.Notifications.Standard.Application.BeforeDynamicwebStartArgs
BeforeEndRequest
Application before end request notification. Occurs as the last thing when application process the request
public const string BeforeEndRequest = "DWN_STANDARD_APPLICATION_BEFOREENDREQUEST"
Field Value
Examples
Remarks
Event occurs when process the method Application_EndRequest(ByVal sender As Object, ByVal e As EventArgs) in Global.asax.
The passed NotificationArgs is Dynamicweb.Notifications.Standard.Application.BeforeEndRequestArgs
BeforePreRequestHandlerExecute
Application before prebegin request notification. Occurs as the first thing when application process the request
public const string BeforePreRequestHandlerExecute = "DWN_STANDARD_APPLICATION_BEFOREPREREQUESTHANDLEREXECUTE"
Field Value
Remarks
Event occurs when process the method Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs) in Global.asax.
The passed NotificationArgs is Dynamicweb.Notifications.Standard.Application.BeginRequestArgs
BeforeStart
public const string BeforeStart = "DWN_STANDARD_APPLICATION_BEFORESTART"
Field Value
Remarks
Event occurs in Application_Start in Global.asax.
The passed NotificationArgs is Dynamicweb.Notifications.Standard.Application.BeforeStartArgs