Class NotificationHandleFactory
Factory for creating notification handlers based on the notification message type.
Implements
Inherited Members
Namespace: Innovt.Cloud.AWS.Notification
Assembly: Innovt.Cloud.AWS.Notification.dll
Syntax
public class NotificationHandleFactory : INotificationHandleFactory
Constructors
| Edit this page View SourceNotificationHandleFactory(IContainer)
Initializes a new instance of the NotificationHandleFactory class.
Declaration
public NotificationHandleFactory(IContainer container)
Parameters
Type | Name | Description |
---|---|---|
IContainer | container | The IoC container. |
Methods
| Edit this page View SourceCreate(NotificationMessageType)
Creates a notification handler based on the provided notification message type.
Declaration
public virtual INotificationHandler Create(NotificationMessageType notificationMessageType)
Parameters
Type | Name | Description |
---|---|---|
NotificationMessageType | notificationMessageType | The notification message type. |
Returns
Type | Description |
---|---|
INotificationHandler | A notification handler for the specified message type. |
CreateCustomHandle(NotificationMessageType)
Creates a custom notification handler for the specified message type. Override this method to implement custom handling for specific message types.
Declaration
public virtual INotificationHandler CreateCustomHandle(NotificationMessageType notificationMessageType)
Parameters
Type | Name | Description |
---|---|---|
NotificationMessageType | notificationMessageType | The notification message type. |
Returns
Type | Description |
---|---|
INotificationHandler | A custom notification handler. |