Class NotificationManager
- Namespace
- Dynamicweb.Extensibility.Notifications
- Assembly
- Dynamicweb.Core.dll
Class NotificationManager.
public class NotificationManager
- Inheritance
-
NotificationManager
- Inherited Members
Methods
Clear()
public static void Clear()
HasSubscribers(IEnumerable<string>)
Determines whether there are any notification subscribers that are configured to receive any of the given notifications.
public static bool HasSubscribers(IEnumerable<string> notifications)
Parameters
notificationsIEnumerable<string>Notification names.
Returns
- bool
Value indicating whether there are any notification subscribers that are configured to receive any of the given notifications.
Exceptions
- ArgumentNullException
notificationsis null.- ArgumentException
notificationsdoes not contain any valid elements.
HasSubscribers(string)
Determines whether there are any notification subscribers that are configured to receive the given notification.
public static bool HasSubscribers(string notification)
Parameters
notificationstringNotification name.
Returns
- bool
Value indicating whether there are any notification subscribers that are configured to receive the given notification.
Notify(string, NotificationArgs)
Notifies the specified notification.
public static void Notify(string notification, NotificationArgs eventArgs)
Parameters
notificationstringThe notification.
eventArgsNotificationArgsThe event args.