Class SingleInstanceHandlerFactory
This IEventHandlerFactory implementation is used to handle events by a single instance object.
Inheritance
System.Object
SingleInstanceHandlerFactory
Implements
Namespace: Volo.Abp.EventBus
Assembly: Volo.Abp.EventBus.dll
Syntax
public class SingleInstanceHandlerFactory : object, IEventHandlerFactory
Remarks
This class always gets the same single instance of handler.
Constructors
SingleInstanceHandlerFactory(IEventHandler)
Declaration
public SingleInstanceHandlerFactory(IEventHandler handler)
Parameters
Type | Name | Description |
---|---|---|
IEventHandler | handler |
Properties
HandlerInstance
The event handler instance.
Declaration
public IEventHandler HandlerInstance { get; }
Property Value
Type | Description |
---|---|
IEventHandler |
Methods
GetHandler()
Declaration
public IEventHandlerDisposeWrapper GetHandler()
Returns
Type | Description |
---|---|
IEventHandlerDisposeWrapper |
IsInFactories(List<IEventHandlerFactory>)
Declaration
public bool IsInFactories(List<IEventHandlerFactory> handlerFactories)
Parameters
Type | Name | Description |
---|---|---|
List<IEventHandlerFactory> | handlerFactories |
Returns
Type | Description |
---|---|
System.Boolean |