Class NotificationManager
- Namespace
- Dynamicweb.Extensibility.Notifications
- Assembly
- Dynamicweb.Extensibility.dll
Class NotificationManager.
public class NotificationManager
- Inheritance
-
NotificationManager
- Inherited Members
Methods
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
notificationstring- Notification 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
notificationstring- The notification.
eventArgsNotificationArgs- The event args.