Show / Hide Table of Contents

Class IocEventHandlerFactory

This IEventHandlerFactory implementation is used to get/release handlers using Ioc.

Inheritance
System.Object
IocEventHandlerFactory
Implements
IEventHandlerFactory
IDisposable
Namespace: Volo.Abp.EventBus
Assembly: Volo.Abp.EventBus.dll
Syntax
public class IocEventHandlerFactory : object, IEventHandlerFactory, IDisposable

Constructors

IocEventHandlerFactory(IServiceScopeFactory, Type)

Declaration
public IocEventHandlerFactory(IServiceScopeFactory scopeFactory, Type handlerType)
Parameters
Type Name Description
IServiceScopeFactory scopeFactory
Type handlerType

Properties

HandlerType

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

ScopeFactory

Declaration
protected IServiceScopeFactory ScopeFactory { get; }
Property Value
Type Description
IServiceScopeFactory

Methods

Dispose()

Declaration
public void Dispose()

GetHandler()

Resolves handler object from Ioc container.

Declaration
public IEventHandlerDisposeWrapper GetHandler()
Returns
Type Description
IEventHandlerDisposeWrapper

Resolved 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
IDisposable

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