SaaS CMS has officially launched! Learn more now.

Class DefaultNotifier

Inheritance
System.Object
DefaultNotifier
Namespace: EPiServer.Notification.Internal
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
[ServiceConfiguration]
[ServiceConfiguration]
public class DefaultNotifier : Object, INotifier, IUserNotificationRepository

Constructors

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

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

Methods

add_NotificationFiltered(AsyncEventHandler<NotificationEventArgs>)

Declaration
public void add_NotificationFiltered(AsyncEventHandler<NotificationEventArgs> value)
Parameters
Type Name Description
AsyncEventHandler<NotificationEventArgs> value

add_NotificationPosted(AsyncEventHandler<NotificationEventArgs>)

Declaration
public void add_NotificationPosted(AsyncEventHandler<NotificationEventArgs> value)
Parameters
Type Name Description
AsyncEventHandler<NotificationEventArgs> value

add_NotificationSaved(AsyncEventHandler<NotificationEventArgs>)

Declaration
public void add_NotificationSaved(AsyncEventHandler<NotificationEventArgs> value)
Parameters
Type Name Description
AsyncEventHandler<NotificationEventArgs> value

add_UserNotificationMissing(AsyncEventHandler<UserNotificationEventArgs>)

Declaration
public void add_UserNotificationMissing(AsyncEventHandler<UserNotificationEventArgs> value)
Parameters
Type Name Description
AsyncEventHandler<UserNotificationEventArgs> value

add_UserNotificationRead(AsyncEventHandler<UserNotificationEventArgs>)

Declaration
public void add_UserNotificationRead(AsyncEventHandler<UserNotificationEventArgs> value)
Parameters
Type Name Description
AsyncEventHandler<UserNotificationEventArgs> value

add_UserNotificationReads(AsyncEventHandler<UserNotificationsEventArgs>)

Declaration
public void add_UserNotificationReads(AsyncEventHandler<UserNotificationsEventArgs> value)
Parameters
Type Name Description
AsyncEventHandler<UserNotificationsEventArgs> value

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

remove_NotificationFiltered(AsyncEventHandler<NotificationEventArgs>)

Declaration
public void remove_NotificationFiltered(AsyncEventHandler<NotificationEventArgs> value)
Parameters
Type Name Description
AsyncEventHandler<NotificationEventArgs> value

remove_NotificationPosted(AsyncEventHandler<NotificationEventArgs>)

Declaration
public void remove_NotificationPosted(AsyncEventHandler<NotificationEventArgs> value)
Parameters
Type Name Description
AsyncEventHandler<NotificationEventArgs> value

remove_NotificationSaved(AsyncEventHandler<NotificationEventArgs>)

Declaration
public void remove_NotificationSaved(AsyncEventHandler<NotificationEventArgs> value)
Parameters
Type Name Description
AsyncEventHandler<NotificationEventArgs> value

remove_UserNotificationMissing(AsyncEventHandler<UserNotificationEventArgs>)

Declaration
public void remove_UserNotificationMissing(AsyncEventHandler<UserNotificationEventArgs> value)
Parameters
Type Name Description
AsyncEventHandler<UserNotificationEventArgs> value

remove_UserNotificationRead(AsyncEventHandler<UserNotificationEventArgs>)

Declaration
public void remove_UserNotificationRead(AsyncEventHandler<UserNotificationEventArgs> value)
Parameters
Type Name Description
AsyncEventHandler<UserNotificationEventArgs> value

remove_UserNotificationReads(AsyncEventHandler<UserNotificationsEventArgs>)

Declaration
public void remove_UserNotificationReads(AsyncEventHandler<UserNotificationsEventArgs> value)
Parameters
Type Name Description
AsyncEventHandler<UserNotificationsEventArgs> value

ValidateMessage(NotificationMessage)

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

Events

NotificationFiltered

Declaration
public event AsyncEventHandler<NotificationEventArgs> NotificationFiltered
Event Type
Type Description
AsyncEventHandler<NotificationEventArgs>

NotificationPosted

Declaration
public event AsyncEventHandler<NotificationEventArgs> NotificationPosted
Event Type
Type Description
AsyncEventHandler<NotificationEventArgs>

NotificationSaved

Declaration
public event AsyncEventHandler<NotificationEventArgs> NotificationSaved
Event Type
Type Description
AsyncEventHandler<NotificationEventArgs>

UserNotificationMissing

Declaration
public event AsyncEventHandler<UserNotificationEventArgs> UserNotificationMissing
Event Type
Type Description
AsyncEventHandler<UserNotificationEventArgs>

UserNotificationRead

Declaration
public event AsyncEventHandler<UserNotificationEventArgs> UserNotificationRead
Event Type
Type Description
AsyncEventHandler<UserNotificationEventArgs>

UserNotificationReads

Declaration
public event AsyncEventHandler<UserNotificationsEventArgs> UserNotificationReads
Event Type
Type Description
AsyncEventHandler<UserNotificationsEventArgs>

Implements

Extension Methods