Interface INotificationFormatter

Signature for components that formats NotificationMessage. This class supports the EPiServer infrastructure and is not intended to be used directly from your code.

Namespace: EPiServer.Notification
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public interface INotificationFormatter

Properties

FormatterName

The name of the formatter.

Declaration
string FormatterName { get; }
Property Value
Type Description
System.String

SupportedChannelNames

Specifies which channels the formatter supports.

Declaration
IEnumerable<string> SupportedChannelNames { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.String>

Methods

FormatMessages(IEnumerable<FormatterNotificationMessage>, String, String, NotificationFormat, String)

Performs formatting of messages.

Declaration
IEnumerable<FormatterNotificationMessage> FormatMessages(IEnumerable<FormatterNotificationMessage> notifications, string sender, string recipient, NotificationFormat format, string notificationChannelName)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<FormatterNotificationMessage> notifications

Messages to format

System.String sender

The sender of the messages

System.String recipient

The receiver of the message

NotificationFormat format

The format to format to

System.String notificationChannelName

The message channel

Returns
Type Description
System.Collections.Generic.IEnumerable<FormatterNotificationMessage>

A list of formatted messages

Remarks

One use case for a formatter might be to combine several messages into one.

Extension Methods