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

Interface INotificationUserRepository

Signature for a component that can be used to register NotificationPreference.

Namespace: EPiServer.Notification.Internal
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public interface INotificationUserRepository : INotificationPreferenceRegister

Methods

IsInterested(INotificationUser, String, String)

Declaration
bool IsInterested(INotificationUser user, string channelName, string typeName = null)
Parameters
Type Name Description
INotificationUser user
System.String channelName
System.String typeName
Returns
Type Description
System.Boolean

ListPreferencesAsync(String, String)

Declaration
Task<IList<NotificationPreference>> ListPreferencesAsync(string userName, string channelName)
Parameters
Type Name Description
System.String userName
System.String channelName
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IList<NotificationPreference>>

ListRegisteredPreferences(String)

Declaration
IList<NotificationPreference> ListRegisteredPreferences(string userName)
Parameters
Type Name Description
System.String userName
Returns
Type Description
System.Collections.Generic.IList<NotificationPreference>

RegisterPreferences(String, IList<NotificationPreference>)

Declaration
void RegisterPreferences(string userName, IList<NotificationPreference> userPreferences)
Parameters
Type Name Description
System.String userName
System.Collections.Generic.IList<NotificationPreference> userPreferences

Extension Methods