Class DefaultNotificationOptionsRegistry
Signature for components that formats Notification
Inheritance
System.Object
DefaultNotificationOptionsRegistry
Implements
Namespace: EPiServer.Notification.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
[ServiceConfiguration]
public class DefaultNotificationOptionsRegistry : Object, INotificationChannelOptionsRegistry
Constructors
DefaultNotificationOptionsRegistry()
Declaration
public DefaultNotificationOptionsRegistry()
Methods
Add(String, NotificationChannelOptions)
Add or register an option for channel name
Declaration
public void Add(string channelName, NotificationChannelOptions options)
Parameters
Type | Name | Description |
---|---|---|
System. |
channelName | The channel name |
Notification |
options | Notification options |
Remarks
If the channel name exists then throws System.
Get(String)
Get the Notification
Declaration
public NotificationChannelOptions Get(string channelName)
Parameters
Type | Name | Description |
---|---|---|
System. |
channelName | The channel name |
Returns
Type | Description |
---|---|
Notification |
Notification option |
Remove(String)
Remove or Unregister the option for the channel name
Declaration
public void Remove(string channelName)
Parameters
Type | Name | Description |
---|---|---|
System. |
channelName | The channel name |