Class IocEventHandlerFactory
This IEventHandlerFactory implementation is used to get/release handlers using Ioc.
Inheritance
System.Object
IocEventHandlerFactory
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
IDisposable