Class Standard.Application.BeforeStartArgs
- Namespace
- Dynamicweb.Notifications
- Assembly
- Dynamicweb.dll
public class Standard.Application.BeforeStartArgs : Standard.Application.LifeCycleEventNotification
- Inheritance
-
Standard.Application.BeforeStartArgs
- 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
}
}
}
Remarks
Arguments passed to Dynamicweb.Notifications.Standard.Application.PreStart notification