Interface INotificationProvider
Signature for a component that can send Notification
Namespace: EPiServer.Notification
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public interface INotificationProvider
Properties
ProviderName
Gets the name of the provider.
Declaration
string ProviderName { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
GetProviderFormat()
Specifie the format the provider supports.
Declaration
NotificationFormat GetProviderFormat()
Returns
Type | Description |
---|---|
Notification |
Supported format. |
SendAsync(IEnumerable<Task<ProviderNotificationMessage>>, Action<ProviderNotificationMessage>, Action<ProviderNotificationMessage, Exception>)
Sends the formatted messages.
Declaration
Task SendAsync(IEnumerable<Task<ProviderNotificationMessage>> messages, Action<ProviderNotificationMessage> succeededAction, Action<ProviderNotificationMessage, Exception> failedAction)
Parameters
Type | Name | Description |
---|---|---|
System. |
messages | The waitable messages to send. |
System. |
succeededAction | A success action that should be called for successfully sent messages. |
System. |
failedAction | A failure action that should be called when a message send operation fails. |
Returns
Type | Description |
---|---|
System. |