Show / Hide Table of Contents

Class SingleInstanceHandlerFactory

This IEventHandlerFactory implementation is used to handle events by a single instance object.

Inheritance
System.Object
SingleInstanceHandlerFactory
Implements
IEventHandlerFactory
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

Implements

IEventHandlerFactory

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft