Table of Contents

Class Standard.Application.BeforeDynamicwebStartArgs

Namespace
Dynamicweb.Notifications
Assembly
Dynamicweb.dll
Provides information about the application
public class Standard.Application.BeforeDynamicwebStartArgs : Standard.Application.LifeCycleEventNotification
Inheritance
Standard.Application.BeforeDynamicwebStartArgs
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

To top