Table of Contents

Class Standard.Area

Namespace
Dynamicweb.Notifications
Assembly
Dynamicweb.dll

Provides notification names for Areas.

public sealed class Standard.Area
Inheritance
Standard.Area
Inherited Members

Examples

namespace Dynamicweb.Examples.Notifications.Standard;

[Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Notifications.Standard.User.OnExtranetLogin)]
public class OnExtranetLogOnObserver : 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.User.OnExtranetLoginArgs))
            return;

        Dynamicweb.Notifications.Standard.User.OnExtranetLoginArgs item = (Dynamicweb.Notifications.Standard.User.OnExtranetLoginArgs)args;
        //Pass user name to the notification e-mail
        string emailBody = $"The user ({item.User.Name}) has been logged-in.";

    }
}

Fields

OnAfterAreaDeleted

Area deleted notification. Occurs after the area has been deleted.

public const string OnAfterAreaDeleted = "DWN_STANDARD_AREA_OnAreaDeleted"

Field Value

string

Remarks

OnAreaSaved

Area saved notification. Occurs after the area has been saved.

public const string OnAreaSaved = "DWN_STANDARD_AREA_OnAreaSaved"

Field Value

string

Remarks

OnBeforeAreaDeleted

Area deleted notification. Occurs before the area is deleted.

public const string OnBeforeAreaDeleted = "DWN_STANDARD_AREA_OnBeforeAreaDeleted"

Field Value

string

Remarks

OnBeforeAreaSaved

Area saved notification. Occurs before the area is saved.

public const string OnBeforeAreaSaved = "DWN_STANDARD_AREA_OnBeforeAreaSaved"

Field Value

string

Remarks

To top