Class Standard.User.OnExtranetLoginArgs
- Namespace
- Dynamicweb.Notifications
- Assembly
- Dynamicweb.dll
Provides information about the user
public class Standard.User.OnExtranetLoginArgs : NotificationArgs
- Inheritance
-
Standard.User.OnExtranetLoginArgs
- 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 = string.Format("The user ({0}) has been logged-in.", item.User.Name);
}
}
}
Remarks
Arguments passed to Dynamicweb.Notifications.Standard.User.OnExtranetLogin notification
Properties
User
Gets the user.
public User User { get; }
Property Value
- User
The user.