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()
    
   
  
  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
  
  
  
  
  
  
  
  Declaration
  
    public DefaultNotifier(INotificationUserRepository userRepository, INotificationRepository repository, IEnumerable<INotificationFormatter> formatters, IEnumerable<IUserNotificationFormatter> userFormatters, QueryableNotificationUserService queryableNotificationUserService, INotificationChannelOptionsRegistry notificationChannelOptionsService, INotificationDispatcher notificationDispatcher)
   
  Parameters
  
  Methods
  
  
  
  
  
  
  
  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 |  | 
    
  
  
  
  
  ValidateMessage(NotificationMessage)
  
  
  Declaration
  
    protected virtual void ValidateMessage(NotificationMessage message)
   
  Parameters
  
  Events
  
  
  
  NotificationFiltered
  
  
  Declaration
  
    public event EventHandler<NotificationEventArgs> NotificationFiltered
   
  Event Type
  
  
  
  NotificationPosted
  
  
  Declaration
  
    public event EventHandler<NotificationEventArgs> NotificationPosted
   
  Event Type
  
  
  
  NotificationSaved
  
  
  Declaration
  
    public event EventHandler<NotificationEventArgs> NotificationSaved
   
  Event Type
  
  
  
  UserNotificationMissing
  
  
  Declaration
  
    public event EventHandler<UserNotificationEventArgs> UserNotificationMissing
   
  Event Type
  
  
  
  UserNotificationRead
  
  
  Declaration
  
    public event EventHandler<UserNotificationEventArgs> UserNotificationRead
   
  Event Type
  
  
  
  UserNotificationReads
  
  
  Declaration
  
    public event EventHandler<UserNotificationsEventArgs> UserNotificationReads
   
  Event Type
  
  Implements
  
  
  Extension Methods