Class DefaultNotifier
Inheritance
System.Object
DefaultNotifier
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
[ServiceConfiguration]
[ServiceConfiguration]
public class DefaultNotifier : Object, INotifier, IUserNotificationRepository
Constructors
Declaration
public DefaultNotifier(INotificationUserRepository userRepository, INotificationRepository repository, IEnumerable<INotificationFormatter> formatters, IEnumerable<IUserNotificationFormatter> userFormatters, QueryableNotificationUserService queryableNotificationUserService, INotificationChannelOptionsRegistry notificationChannelOptionsService, IRootServiceScopeFactory serviceProviderScopeFactory)
Parameters
Methods
add_NotificationFiltered(AsyncEventHandler<NotificationEventArgs>)
Declaration
public void add_NotificationFiltered(AsyncEventHandler<NotificationEventArgs> value)
Parameters
add_NotificationPosted(AsyncEventHandler<NotificationEventArgs>)
Declaration
public void add_NotificationPosted(AsyncEventHandler<NotificationEventArgs> value)
Parameters
add_NotificationSaved(AsyncEventHandler<NotificationEventArgs>)
Declaration
public void add_NotificationSaved(AsyncEventHandler<NotificationEventArgs> value)
Parameters
add_UserNotificationMissing(AsyncEventHandler<UserNotificationEventArgs>)
Declaration
public void add_UserNotificationMissing(AsyncEventHandler<UserNotificationEventArgs> value)
Parameters
add_UserNotificationRead(AsyncEventHandler<UserNotificationEventArgs>)
Declaration
public void add_UserNotificationRead(AsyncEventHandler<UserNotificationEventArgs> value)
Parameters
add_UserNotificationReads(AsyncEventHandler<UserNotificationsEventArgs>)
Declaration
public void add_UserNotificationReads(AsyncEventHandler<UserNotificationsEventArgs> value)
Parameters
Declaration
public Task<UserNotificationMessage> GetUserNotificationAsync(INotificationUser user, int notificationId, UserNotificationFormattingMode formattingMode)
Parameters
Returns
Declaration
public Task<PagedUserNotificationMessageResult> GetUserNotificationsAsync(UserNotificationsQuery query, long startIndex, int maxRows, UserNotificationFormattingMode formattingMode)
Parameters
Returns
GetUserNotificationsCountAsync(UserNotificationsQuery)
Declaration
public Task<int> GetUserNotificationsCountAsync(UserNotificationsQuery query)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Int32> |
|
MarkUserNotificationAsReadAsync(INotificationUser, Int32)
Declaration
public Task MarkUserNotificationAsReadAsync(INotificationUser user, int notificationId)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
MarkUserNotificationsAsReadAsync(INotificationUser)
Declaration
public Task MarkUserNotificationsAsReadAsync(INotificationUser user)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
MarkUserNotificationsAsReadAsync(INotificationUser, String)
Declaration
public Task MarkUserNotificationsAsReadAsync(INotificationUser user, string channelName)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
PostNotificationAsync(NotificationMessage)
Declaration
public Task PostNotificationAsync(NotificationMessage message)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
remove_NotificationFiltered(AsyncEventHandler<NotificationEventArgs>)
Declaration
public void remove_NotificationFiltered(AsyncEventHandler<NotificationEventArgs> value)
Parameters
remove_NotificationPosted(AsyncEventHandler<NotificationEventArgs>)
Declaration
public void remove_NotificationPosted(AsyncEventHandler<NotificationEventArgs> value)
Parameters
remove_NotificationSaved(AsyncEventHandler<NotificationEventArgs>)
Declaration
public void remove_NotificationSaved(AsyncEventHandler<NotificationEventArgs> value)
Parameters
remove_UserNotificationMissing(AsyncEventHandler<UserNotificationEventArgs>)
Declaration
public void remove_UserNotificationMissing(AsyncEventHandler<UserNotificationEventArgs> value)
Parameters
remove_UserNotificationRead(AsyncEventHandler<UserNotificationEventArgs>)
Declaration
public void remove_UserNotificationRead(AsyncEventHandler<UserNotificationEventArgs> value)
Parameters
remove_UserNotificationReads(AsyncEventHandler<UserNotificationsEventArgs>)
Declaration
public void remove_UserNotificationReads(AsyncEventHandler<UserNotificationsEventArgs> value)
Parameters
ValidateMessage(NotificationMessage)
Declaration
protected virtual void ValidateMessage(NotificationMessage message)
Parameters
Events
NotificationFiltered
Declaration
public event AsyncEventHandler<NotificationEventArgs> NotificationFiltered
Event Type
NotificationPosted
Declaration
public event AsyncEventHandler<NotificationEventArgs> NotificationPosted
Event Type
NotificationSaved
Declaration
public event AsyncEventHandler<NotificationEventArgs> NotificationSaved
Event Type
UserNotificationMissing
Declaration
public event AsyncEventHandler<UserNotificationEventArgs> UserNotificationMissing
Event Type
UserNotificationRead
Declaration
public event AsyncEventHandler<UserNotificationEventArgs> UserNotificationRead
Event Type
UserNotificationReads
Declaration
public event AsyncEventHandler<UserNotificationsEventArgs> UserNotificationReads
Event Type
Implements
Extension Methods