Interface INewsletterSubscriberStore
Provides storage operations for newsletter subscribers.
Assembly: DataWeb.Core.dll
Syntax
public interface INewsletterSubscriberStore
Properties
Name
Gets the name of the store.
Declaration
Property Value
Methods
ConvertStringToStatus(string)
Converts the given string value to a subscriber status.
Declaration
SubscriberStatus ConvertStringToStatus(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Returns
DeserializeAdditionalValues(string)
Deserializes the additional values of a subscriber.
Declaration
List<NewsletterSubscriber.AdditionalValue> DeserializeAdditionalValues(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Returns
GetSubscriberAsync(NewsletterSubscriberFilter, CancellationToken)
Declaration
Task<NewsletterSubscriber> GetSubscriberAsync(NewsletterSubscriberFilter filter, CancellationToken cancellationToken = default)
Parameters
Returns
GetSubscriberCountAsync(NewsletterSubscriberFilter, CancellationToken)
Declaration
Task<long> GetSubscriberCountAsync(NewsletterSubscriberFilter filter, CancellationToken cancellationToken = default)
Parameters
Returns
GetSubscribersAsync(NewsletterSubscriberFilter, CancellationToken)
Declaration
Task<IEnumerable<NewsletterSubscriber>> GetSubscribersAsync(NewsletterSubscriberFilter filter, CancellationToken cancellationToken = default)
Parameters
Returns
RemoveAsync(string, CancellationToken)
Removes the subscriber with the given Id.
Declaration
Task RemoveAsync(string id, CancellationToken cancellationToken = default)
Parameters
Returns
RemoveGroupAsync(string, string, CancellationToken)
Removes the given group from the subscriber.
Declaration
Task RemoveGroupAsync(string id, string group, CancellationToken cancellationToken = default)
Parameters
Returns
SetAsync(NewsletterSubscriber, CancellationToken)
Declaration
Task SetAsync(NewsletterSubscriber subscriber, CancellationToken cancellationToken = default)
Parameters
Returns