Interface INewsletterModelStore
Defines methods for storing and retrieving newsletter models.
Namespace: DataWeb.Newsletter
Assembly: DataWeb.Core.dll
Syntax
public interface INewsletterModelStore
Properties
Name
Gets the name of the newsletter model store.
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetModelAsync(NewsletterModelFilter, CancellationToken)
Gets the newsletter model that matches the specified filter.
Declaration
Task<NewsletterModel> GetModelAsync(NewsletterModelFilter filter, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
NewsletterModelFilter | filter | The NewsletterModelFilter to use for querying the newsletter model. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<NewsletterModel> | The newsletter model that matches the filter. |
GetModelsAsync(NewsletterModelFilter, CancellationToken)
Gets a collection of newsletter models based on the specified filter.
Declaration
Task<IEnumerable<NewsletterModel>> GetModelsAsync(NewsletterModelFilter filter, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
NewsletterModelFilter | filter | The NewsletterModelFilter to use for querying the newsletter models. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<IEnumerable<NewsletterModel>> | An enumerable collection of newsletter models that match the filter. |