![]() | StandardUserOnExtranetLoginArgs Class |
Namespace: Dynamicweb.Notifications
The StandardUserOnExtranetLoginArgs type exposes the following members.
Name | Description | |
---|---|---|
![]() | StandardUserOnExtranetLoginArgs | Initializes a new instance of the StandardUserOnExtranetLoginArgs class |
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 = string.Format("The user ({0}) has been logged-in.", item.User.Name); } } }