Interface ILocalEventBus
Defines interface of the event bus.
Inherited Members
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 |