Show / Hide Table of Contents

Class TransientEventHandlerFactory

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

Inheritance
System.Object
TransientEventHandlerFactory
TransientEventHandlerFactory<THandler>
Implements
IEventHandlerFactory
Namespace: Volo.Abp.EventBus
Assembly: Volo.Abp.EventBus.dll
Syntax
public class TransientEventHandlerFactory : object, IEventHandlerFactory
Remarks

This class always creates a new transient instance of the handler type.

Constructors

TransientEventHandlerFactory(Type)

Declaration
public TransientEventHandlerFactory(Type handlerType)
Parameters
Type Name Description
Type handlerType

Properties

HandlerType

Declaration
public Type HandlerType { get; }
Property Value
Type Description
Type

Methods

CreateHandler()

Declaration
protected virtual IEventHandler CreateHandler()
Returns
Type Description
IEventHandler

GetHandler()

Creates a new instance of the handler object.

Declaration
public virtual IEventHandlerDisposeWrapper GetHandler()
Returns
Type Description
IEventHandlerDisposeWrapper

The handler object

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