Interface INewsletterMailingListStore
Represents a store for mailing list.
Namespace: DataWeb.Newsletter
Assembly: DataWeb.Core.dll
Syntax
public interface INewsletterMailingListStore
Properties
Name
Gets the name of the mailing list store.
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetMailingListAsync(NewsletterMailingListFilter, CancellationToken)
Retrieves a single mailing list data object that matches the specified filter criteria.
Declaration
Task<NewsletterMailingListData> GetMailingListAsync(NewsletterMailingListFilter filter, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
NewsletterMailingListFilter | filter | The NewsletterMailingListFilter to use when retrieving the mailing list. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<NewsletterMailingListData> | A task that represents the asynchronous operation. The task result contains the mailing list data object that matches the specified filter criteria. |
GetMailingListsAsync(NewsletterMailingListFilter, CancellationToken)
Retrieves a list of mailing list data objects that match the specified filter criteria.
Declaration
Task<IEnumerable<NewsletterMailingListData>> GetMailingListsAsync(NewsletterMailingListFilter filter, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
NewsletterMailingListFilter | filter | The NewsletterMailingListFilter to use when retrieving mailing lists. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<IEnumerable<NewsletterMailingListData>> | A task that represents the asynchronous operation. The task result contains the list of mailing list data objects that match the specified filter criteria. |