November Happy Hour will be moved to Thursday December 5th.

Interface INotifier

Class for sending NotificationMessages

Namespace: EPiServer.Notification
Assembly: EPiServer.dll
Version: 10.10.4
Syntax
public interface INotifier

Methods

PostNotificationAsync(NotificationMessage)

Posts a message for delivery. The delivery of the message depends on user settings, which INotificationFormatter and INotificationProvider that are registered.

Declaration
Task PostNotificationAsync(NotificationMessage notification)
Parameters
Type Name Description
NotificationMessage notification

The message to send.

Returns
Type Description
System.Threading.Tasks.Task
Remarks

INotificationChannelOptionsRegistry can be used to configure if an message should be processed immediately or scheduled. By default are messages processed scheduled.

When PostNotificationAsync(NotificationMessage) is completed the messages is stored for send processing. However even if Immediate is configured for channel the actual send process is done in background, in case of Immediate the processing is triggered without waiting for next scheduling.

Events

NotificationFiltered

Occurs when a message is filtered.

Declaration
event EventHandler<NotificationEventArgs> NotificationFiltered
Event Type
Type Description
System.EventHandler<NotificationEventArgs>

NotificationPosted

Occurs when a message is notified.

Declaration
event EventHandler<NotificationEventArgs> NotificationPosted
Event Type
Type Description
System.EventHandler<NotificationEventArgs>

NotificationSaved

Occurs when a message is saved.

Declaration
event EventHandler<NotificationEventArgs> NotificationSaved
Event Type
Type Description
System.EventHandler<NotificationEventArgs>

Extension Methods