Interface INotificationProvider
Signature for a component that can send 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.0Syntax
public interface INotificationProvider
Properties
ProviderName
Gets the name of the provider.
Declaration
string ProviderName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
GetProviderFormat()
Specifie the format the provider supports.
Declaration
NotificationFormat GetProviderFormat()
Returns
Type | Description |
---|---|
NotificationFormat | Supported format. |
Send(IEnumerable<ProviderNotificationMessage>, Action<ProviderNotificationMessage>, Action<ProviderNotificationMessage, Exception>)
Sends the formatted messages.
Declaration
void Send(IEnumerable<ProviderNotificationMessage> messages, Action<ProviderNotificationMessage> succeededAction, Action<ProviderNotificationMessage, Exception> failedAction)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ProviderNotificationMessage> | messages | The messages to send. |
System.Action<ProviderNotificationMessage> | succeededAction | A success action that should be called for successfully sent messages. |
System.Action<ProviderNotificationMessage, System.Exception> | failedAction | A failure action that should be called when a message send operation fails. |