Show / Hide Table of Contents

Interface ILocalEventBus

Defines interface of the event bus.

Inherited Members
IEventBus.PublishAsync<TEvent>(TEvent)
IEventBus.PublishAsync(Type, Object)
IEventBus.Subscribe<TEvent>(Func<TEvent, Task>)
IEventBus.Subscribe<TEvent, THandler>()
IEventBus.Subscribe(Type, IEventHandler)
IEventBus.Subscribe<TEvent>(IEventHandlerFactory)
IEventBus.Subscribe(Type, IEventHandlerFactory)
IEventBus.Unsubscribe<TEvent>(Func<TEvent, Task>)
IEventBus.Unsubscribe<TEvent>(ILocalEventHandler<TEvent>)
IEventBus.Unsubscribe(Type, IEventHandler)
IEventBus.Unsubscribe<TEvent>(IEventHandlerFactory)
IEventBus.Unsubscribe(Type, IEventHandlerFactory)
IEventBus.UnsubscribeAll<TEvent>()
IEventBus.UnsubscribeAll(Type)
Namespace: Volo.Abp.EventBus.Local
Assembly: Volo.Abp.EventBus.dll
Syntax
public interface ILocalEventBus : IEventBus

Methods

Subscribe<TEvent>(ILocalEventHandler<TEvent>)

Registers to an event. Same (given) instance of the handler is used for all event occurrences.

Declaration
IDisposable Subscribe<TEvent>(ILocalEventHandler<TEvent> handler)

    where TEvent : class
Parameters
Type Name Description
ILocalEventHandler<TEvent> handler

Object to handle the event

Returns
Type Description
IDisposable
Type Parameters
Name Description
TEvent

Event type

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