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

Interface IUserNotificationFormatter

NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version. Used for formatting UserNotificationMessage. By extending an INotificationFormatter implementation, adds the FormatUserMessage-method to a formatter.

Namespace: EPiServer.Notification
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
public interface IUserNotificationFormatter
Remarks

When using the GetUserNotification(s)-methods in the interface IUserNotificationRepository, formatting will be done depending on the UserNotificationFormattingMode. If the message shall be formatted, it is automatically resolved which IUserNotificationFormatter-extended formatter that should be used. [ServiceConfiguration(typeof(INotificationFormatter))] internal class ExampleFormatter : INotificationFormatter, IUserNotificationFormatter { public UserNotificationMessage FormatUserMessage(UserNotificationMessage notification) { return notification;} }

Methods

FormatUserMessage(UserNotificationMessage)

Declaration
UserNotificationMessage FormatUserMessage(UserNotificationMessage notification)
Parameters
Type Name Description
UserNotificationMessage notification
Returns
Type Description
UserNotificationMessage

Extension Methods