Class UserNotificationRepositoryExtensions
Inheritance
System.Object
UserNotificationRepositoryExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Notification
Assembly: EPiServer.dll
Version: 11.20.7Syntax
public static class UserNotificationRepositoryExtensions
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> |