Class LocalEventBus
Inheritance
LocalEventBus
Assembly: Volo.Abp.EventBus.dll
Syntax
[ExposeServices(new Type[] { typeof(ILocalEventBus), typeof(LocalEventBus) })]
public class LocalEventBus : EventBusBase, ILocalEventBus, IEventBus, ISingletonDependency
Constructors
LocalEventBus(IOptions<AbpLocalEventBusOptions>, IServiceScopeFactory, ICurrentTenant, IUnitOfWorkManager, IEventHandlerInvoker)
Declaration
public LocalEventBus(IOptions<AbpLocalEventBusOptions> options, IServiceScopeFactory serviceScopeFactory, ICurrentTenant currentTenant, IUnitOfWorkManager unitOfWorkManager, IEventHandlerInvoker eventHandlerInvoker)
Parameters
Properties
HandlerFactories
Declaration
protected ConcurrentDictionary<Type, List<IEventHandlerFactory>> HandlerFactories { get; }
Property Value
Logger
Declaration
public ILogger<LocalEventBus> Logger { get; set; }
Property Value
Options
Declaration
protected AbpLocalEventBusOptions Options { get; }
Property Value
Methods
AddToUnitOfWork(IUnitOfWork, UnitOfWorkEventRecord)
Declaration
protected override void AddToUnitOfWork(IUnitOfWork unitOfWork, UnitOfWorkEventRecord eventRecord)
Parameters
Overrides
GetHandlerFactories(Type)
Declaration
protected override IEnumerable<EventBusBase.EventTypeWithEventHandlerFactories> GetHandlerFactories(Type eventType)
Parameters
Type |
Name |
Description |
Type |
eventType |
|
Returns
Overrides
PublishAsync(LocalEventMessage)
Declaration
public virtual Task PublishAsync(LocalEventMessage localEventMessage)
Parameters
Returns
PublishToEventBusAsync(Type, object)
Declaration
protected override Task PublishToEventBusAsync(Type eventType, object eventData)
Parameters
Type |
Name |
Description |
Type |
eventType |
|
object |
eventData |
|
Returns
Overrides
Subscribe(Type, IEventHandlerFactory)
Declaration
public override IDisposable Subscribe(Type eventType, IEventHandlerFactory factory)
Parameters
Returns
Overrides
Subscribe<TEvent>(ILocalEventHandler<TEvent>)
Declaration
public virtual IDisposable Subscribe<TEvent>(ILocalEventHandler<TEvent> handler) where TEvent : class
Parameters
Returns
Type Parameters
Unsubscribe(Type, IEventHandler)
Declaration
public override void Unsubscribe(Type eventType, IEventHandler handler)
Parameters
Overrides
Unsubscribe(Type, IEventHandlerFactory)
Declaration
public override void Unsubscribe(Type eventType, IEventHandlerFactory factory)
Parameters
Overrides
UnsubscribeAll(Type)
Declaration
public override void UnsubscribeAll(Type eventType)
Parameters
Type |
Name |
Description |
Type |
eventType |
|
Overrides
Unsubscribe<TEvent>(Func<TEvent, Task>)
Declaration
public override void Unsubscribe<TEvent>(Func<TEvent, Task> action) where TEvent : class
Parameters
Type |
Name |
Description |
Func<TEvent, Task> |
action |
|
Type Parameters
Overrides
Implements
Extension Methods