November Happy Hour will be moved to Thursday December 5th.

Interface INotificationRepository

Namespace: EPiServer.Notification.Internal
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public interface INotificationRepository

Methods

DeleteAsync(IEnumerable<Int32>)

Declaration
Task DeleteAsync(IEnumerable<int> messageIds)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Int32> messageIds
Returns
Type Description
System.Threading.Tasks.Task

GetAsync(Int32)

Declaration
Task<InternalNotificationMessage> GetAsync(int messageId)
Parameters
Type Name Description
System.Int32 messageId
Returns
Type Description
System.Threading.Tasks.Task<InternalNotificationMessage>

ListAsync(String, String, Uri, Nullable<Boolean>, Nullable<Boolean>, Int64, Int32)

Declaration
Task<PagedInternalNotificationMessageResult> ListAsync(string recipient, string channelName, Uri category, Nullable<bool> read, Nullable<bool> sent, long startIndex, int maxRows)
Parameters
Type Name Description
System.String recipient
System.String channelName
System.Uri category
System.Nullable<System.Boolean> read
System.Nullable<System.Boolean> sent
System.Int64 startIndex
System.Int32 maxRows
Returns
Type Description
System.Threading.Tasks.Task<PagedInternalNotificationMessageResult>

ListRecipientsAsync(Nullable<Boolean>, Nullable<Boolean>)

Declaration
Task<IEnumerable<string>> ListRecipientsAsync(Nullable<bool> read, Nullable<bool> sent)
Parameters
Type Name Description
System.Nullable<System.Boolean> read
System.Nullable<System.Boolean> sent
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<System.String>>

ListUnsentAsync(IEnumerable<String>, Boolean)

Declaration
Task<IEnumerable<InternalNotificationMessage>> ListUnsentAsync(IEnumerable<string> recipients, bool includeScheduled)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.String> recipients
System.Boolean includeScheduled
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<InternalNotificationMessage>>

MarkAsReadAsync(IEnumerable<Int32>)

Declaration
Task MarkAsReadAsync(IEnumerable<int> messageIds)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Int32> messageIds
Returns
Type Description
System.Threading.Tasks.Task

MarkAsSentAsync(IEnumerable<Int32>)

Declaration
Task MarkAsSentAsync(IEnumerable<int> messageIds)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Int32> messageIds
Returns
Type Description
System.Threading.Tasks.Task

SaveAsync(InternalNotificationMessage)

Declaration
Task<int> SaveAsync(InternalNotificationMessage message)
Parameters
Type Name Description
InternalNotificationMessage message
Returns
Type Description
System.Threading.Tasks.Task<System.Int32>

TruncateAsync(DateTime)

Declaration
Task<int> TruncateAsync(DateTime olderThan)
Parameters
Type Name Description
System.DateTime olderThan
Returns
Type Description
System.Threading.Tasks.Task<System.Int32>

Extension Methods