Interface INotificationFormatter
Signature for components that formats Notification
Namespace: EPiServer.Notification
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public interface INotificationFormatter
Properties
SupportedChannelNames
Specifies which channels the formatter supports.
Declaration
IEnumerable<string> SupportedChannelNames { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
FormatMessagesAsync(IEnumerable<FormatterNotificationMessage>, String, NotificationFormat, String)
Performs formatting of messages.
Declaration
Task<IEnumerable<FormatterNotificationMessage>> FormatMessagesAsync(IEnumerable<FormatterNotificationMessage> notifications, string recipient, NotificationFormat format, string channelName)
Parameters
Type | Name | Description |
---|---|---|
System. |
notifications | Messages to format |
System. |
recipient | The receiver of the message |
Notification |
format | The format to format to |
System. |
channelName | The message channel |
Returns
Type | Description |
---|---|
System. |
A list of formatted messages |
Remarks
One use case for a formatter might be to combine several messages into one.