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

Class UserNotificationRepositoryExtensions

Inheritance
System.Object
UserNotificationRepositoryExtensions
Namespace: EPiServer.Notification
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public static class UserNotificationRepositoryExtensions : Object

Methods

GetUserNotificationAsync(IUserNotificationRepository, INotificationUser, Int32)

Gets a single unformatted UserNotificationMessage given its id.

Declaration
public static Task<UserNotificationMessage> GetUserNotificationAsync(this IUserNotificationRepository repository, INotificationUser user, int notificationId)
Parameters
Type Name Description
IUserNotificationRepository repository

The usernotification repository that is being extended

INotificationUser user

The recipient of the message.

System.Int32 notificationId

The id of the message.

Returns
Type Description
System.Threading.Tasks.Task<UserNotificationMessage>

A message.

GetUserNotificationsAsync(IUserNotificationRepository, UserNotificationsQuery, Int64, Int32)

Gets a paged list of unformatted messages for a user.

Declaration
public static Task<PagedUserNotificationMessageResult> GetUserNotificationsAsync(this IUserNotificationRepository repository, UserNotificationsQuery query, long startIndex, int maxRows)
Parameters
Type Name Description
IUserNotificationRepository repository

The usernotification repository that is being extended

UserNotificationsQuery query

Query information

System.Int64 startIndex

The start index, used for paging

System.Int32 maxRows

The maximum number of rows returned

Returns
Type Description
System.Threading.Tasks.Task<PagedUserNotificationMessageResult>