Class NewsletterEventHandler
Provides methods for handling the newsletter events process.
Implements
Inherited Members
Namespace: DataWeb.Newsletter
Assembly: DataWeb.Core.dll
Syntax
public class NewsletterEventHandler : INewsletterEventHandler
Methods
ProcessOnBatchSaveAsync(string, List<NewsletterEventBatchInsert>, CancellationToken)
Process a batch of newsletter events for the specified row identifier.
Declaration
public Task ProcessOnBatchSaveAsync(string rowIdMaster, List<NewsletterEventBatchInsert> events, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | rowIdMaster | The row identifier to associate the newsletter events with. |
List<NewsletterEventBatchInsert> | events | The list of NewsletterEventBatchInsert to insert. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task |
ProcessOnSaveAsync(string, string, NewsletterEventType, string, string, CancellationToken)
Process a new newsletter event.
Declaration
public Task ProcessOnSaveAsync(string eventId, string email, NewsletterEventType eventType, string description = null, string rowIdMaster = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | eventId | The event id associated with the newsletter event. |
string | The email address associated with the newsletter event. |
|
NewsletterEventType | eventType | The NewsletterEventType of the newsletter event. |
string | description | The optional description of the newsletter event. |
string | rowIdMaster | The optional row identifier associated with the newsletter event. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task |