Class INotificationProviderExtensions
Signature for a component that can send NotificationMessage.
Inheritance
System.Object
INotificationProviderExtensions
Namespace: EPiServer.Notification
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public static class INotificationProviderExtensions : Object
Methods
SendAsync(INotificationProvider, IEnumerable<ProviderNotificationMessage>, Action<ProviderNotificationMessage>, Action<ProviderNotificationMessage, Exception>)
Sends the formatted messages.
Declaration
public static Task SendAsync(this INotificationProvider provider, IEnumerable<ProviderNotificationMessage> messages, Action<ProviderNotificationMessage> succeededAction, Action<ProviderNotificationMessage, Exception> failedAction)
Parameters
Type | Name | Description |
---|---|---|
INotificationProvider | provider | The notification provider. |
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. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |