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

Class DefaultNotifier

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

Inheritance
System.Object
DefaultNotifier
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.Internal
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(typeof(IUserNotificationRepository), Lifecycle = ServiceInstanceScope.Singleton)]
[ServiceConfiguration(typeof(INotifier), Lifecycle = ServiceInstanceScope.Singleton)]
public class DefaultNotifier : INotifier, IUserNotificationRepository

Constructors

DefaultNotifier(INotificationUserRepository, INotificationRepository, IEnumerable<INotificationFormatter>, IEnumerable<IUserNotificationFormatter>, QueryableNotificationUserService, INotificationChannelOptionsRegistry, INotificationDispatcher)

Declaration
public DefaultNotifier(INotificationUserRepository userRepository, INotificationRepository repository, IEnumerable<INotificationFormatter> formatters, IEnumerable<IUserNotificationFormatter> userFormatters, QueryableNotificationUserService queryableNotificationUserService, INotificationChannelOptionsRegistry notificationChannelOptionsService, INotificationDispatcher notificationDispatcher)
Parameters
Type Name Description
INotificationUserRepository userRepository
INotificationRepository repository
System.Collections.Generic.IEnumerable<INotificationFormatter> formatters
System.Collections.Generic.IEnumerable<IUserNotificationFormatter> userFormatters
QueryableNotificationUserService queryableNotificationUserService
INotificationChannelOptionsRegistry notificationChannelOptionsService
INotificationDispatcher notificationDispatcher

Methods

GetUserNotificationAsync(INotificationUser, Int32, UserNotificationFormattingMode)

Declaration
public Task<UserNotificationMessage> GetUserNotificationAsync(INotificationUser user, int notificationId, UserNotificationFormattingMode formattingMode)
Parameters
Type Name Description
INotificationUser user
System.Int32 notificationId
UserNotificationFormattingMode formattingMode
Returns
Type Description
System.Threading.Tasks.Task<UserNotificationMessage>

GetUserNotificationsAsync(UserNotificationsQuery, Int64, Int32, UserNotificationFormattingMode)

Declaration
public Task<PagedUserNotificationMessageResult> GetUserNotificationsAsync(UserNotificationsQuery query, long startIndex, int maxRows, UserNotificationFormattingMode formattingMode)
Parameters
Type Name Description
UserNotificationsQuery query
System.Int64 startIndex
System.Int32 maxRows
UserNotificationFormattingMode formattingMode
Returns
Type Description
System.Threading.Tasks.Task<PagedUserNotificationMessageResult>

GetUserNotificationsCountAsync(UserNotificationsQuery)

Declaration
public Task<int> GetUserNotificationsCountAsync(UserNotificationsQuery query)
Parameters
Type Name Description
UserNotificationsQuery query
Returns
Type Description
System.Threading.Tasks.Task<System.Int32>

MarkUserNotificationAsReadAsync(INotificationUser, Int32)

Declaration
public Task MarkUserNotificationAsReadAsync(INotificationUser user, int notificationId)
Parameters
Type Name Description
INotificationUser user
System.Int32 notificationId
Returns
Type Description
System.Threading.Tasks.Task

MarkUserNotificationsAsReadAsync(INotificationUser)

Declaration
public Task MarkUserNotificationsAsReadAsync(INotificationUser user)
Parameters
Type Name Description
INotificationUser user
Returns
Type Description
System.Threading.Tasks.Task

MarkUserNotificationsAsReadAsync(INotificationUser, String)

Declaration
public Task MarkUserNotificationsAsReadAsync(INotificationUser user, string channelName)
Parameters
Type Name Description
INotificationUser user
System.String channelName
Returns
Type Description
System.Threading.Tasks.Task

PostNotificationAsync(NotificationMessage)

Declaration
public Task PostNotificationAsync(NotificationMessage message)
Parameters
Type Name Description
NotificationMessage message
Returns
Type Description
System.Threading.Tasks.Task

ValidateMessage(NotificationMessage)

Declaration
protected virtual void ValidateMessage(NotificationMessage message)
Parameters
Type Name Description
NotificationMessage message

Events

NotificationFiltered

Declaration
public event EventHandler<NotificationEventArgs> NotificationFiltered
Event Type
Type Description
System.EventHandler<NotificationEventArgs>

NotificationPosted

Declaration
public event EventHandler<NotificationEventArgs> NotificationPosted
Event Type
Type Description
System.EventHandler<NotificationEventArgs>

NotificationSaved

Declaration
public event EventHandler<NotificationEventArgs> NotificationSaved
Event Type
Type Description
System.EventHandler<NotificationEventArgs>

UserNotificationMissing

Declaration
public event EventHandler<UserNotificationEventArgs> UserNotificationMissing
Event Type
Type Description
System.EventHandler<UserNotificationEventArgs>

UserNotificationRead

Declaration
public event EventHandler<UserNotificationEventArgs> UserNotificationRead
Event Type
Type Description
System.EventHandler<UserNotificationEventArgs>

UserNotificationReads

Declaration
public event EventHandler<UserNotificationsEventArgs> UserNotificationReads
Event Type
Type Description
System.EventHandler<UserNotificationsEventArgs>

Implements

Extension Methods