Class NotificationTypeFactory
A factory class for creating instances of the INotificationType implementations
Inherited Members
Namespace: LemonEdge.API.Core.Notifications
Assembly: LemonEdge.API.dll
Syntax
public class NotificationTypeFactory : INotificationTypeFactory, IHaveAddInListeners
Constructors
NotificationTypeFactory(IFactoryInjector, IReflectionHelper, IDomainContextEventHandler)
Declaration
public NotificationTypeFactory(IFactoryInjector factoryInjector, IReflectionHelper reflectionHelper, IDomainContextEventHandler eventHandler)
Parameters
Type | Name | Description |
---|---|---|
IFactoryInjector | factoryInjector | |
IReflectionHelper | reflectionHelper | |
IDomainContextEventHandler | eventHandler |
Methods
AddAddInListeners()
Adds listeners.
Declaration
public void AddAddInListeners()
GetAllNotificationTypes()
Returns all INotificationType implementations registered in the system
Declaration
public IEnumerable<INotificationType> GetAllNotificationTypes()
Returns
Type | Description |
---|---|
IEnumerable<INotificationType> | All INotificationType implementations registered in the system |
GetNotificationType(Guid)
Given a UniqueNotificationTypeID returns the appropriate INotificationType implementation.
The system unique notification ids are available from SystemNotificationTypeIDs
Declaration
public INotificationType GetNotificationType(Guid uniqueID)
Parameters
Type | Name | Description |
---|---|---|
Guid | uniqueID | The unique id of a INotificationType |
Returns
Type | Description |
---|---|
INotificationType | The appropriate INotificationType implementation corrosponding to the unique id |
RemoveAddInListeners()
Removes listeners.
Declaration
public void RemoveAddInListeners()