Class NullLocalEventBus
Inheritance
NullLocalEventBus
Assembly: Volo.Abp.EventBus.dll
Syntax
public sealed class NullLocalEventBus : ILocalEventBus, IEventBus
Properties
Instance
Declaration
public static NullLocalEventBus Instance { get; }
Property Value
Methods
PublishAsync(Type, object, bool)
Declaration
public Task PublishAsync(Type eventType, object eventData, bool onUnitOfWorkComplete = true)
Parameters
Type |
Name |
Description |
Type |
eventType |
|
object |
eventData |
|
bool |
onUnitOfWorkComplete |
|
Returns
PublishAsync<TEvent>(TEvent, bool)
Declaration
public Task PublishAsync<TEvent>(TEvent eventData, bool onUnitOfWorkComplete = true) where TEvent : class
Parameters
Type |
Name |
Description |
TEvent |
eventData |
|
bool |
onUnitOfWorkComplete |
|
Returns
Type Parameters
Subscribe(Type, IEventHandler)
Declaration
public IDisposable Subscribe(Type eventType, IEventHandler handler)
Parameters
Returns
Subscribe(Type, IEventHandlerFactory)
Declaration
public IDisposable Subscribe(Type eventType, IEventHandlerFactory factory)
Parameters
Returns
Subscribe<TEvent>(Func<TEvent, Task>)
Declaration
public IDisposable Subscribe<TEvent>(Func<TEvent, Task> action) where TEvent : class
Parameters
Type |
Name |
Description |
Func<TEvent, Task> |
action |
|
Returns
Type Parameters
Subscribe<TEvent>(IEventHandlerFactory)
Declaration
public IDisposable Subscribe<TEvent>(IEventHandlerFactory factory) where TEvent : class
Parameters
Returns
Type Parameters
Subscribe<TEvent>(ILocalEventHandler<TEvent>)
Declaration
public IDisposable Subscribe<TEvent>(ILocalEventHandler<TEvent> handler) where TEvent : class
Parameters
Returns
Type Parameters
Subscribe<TEvent, THandler>()
Declaration
public IDisposable Subscribe<TEvent, THandler>() where TEvent : class where THandler : IEventHandler, new()
Returns
Type Parameters
Name |
Description |
TEvent |
|
THandler |
|
Unsubscribe(Type, IEventHandler)
Declaration
public void Unsubscribe(Type eventType, IEventHandler handler)
Parameters
Unsubscribe(Type, IEventHandlerFactory)
Declaration
public void Unsubscribe(Type eventType, IEventHandlerFactory factory)
Parameters
UnsubscribeAll(Type)
Declaration
public void UnsubscribeAll(Type eventType)
Parameters
Type |
Name |
Description |
Type |
eventType |
|
UnsubscribeAll<TEvent>()
Declaration
public void UnsubscribeAll<TEvent>() where TEvent : class
Type Parameters
Unsubscribe<TEvent>(Func<TEvent, Task>)
Declaration
public void Unsubscribe<TEvent>(Func<TEvent, Task> action) where TEvent : class
Parameters
Type |
Name |
Description |
Func<TEvent, Task> |
action |
|
Type Parameters
Unsubscribe<TEvent>(IEventHandlerFactory)
Declaration
public void Unsubscribe<TEvent>(IEventHandlerFactory factory) where TEvent : class
Parameters
Type Parameters
Unsubscribe<TEvent>(ILocalEventHandler<TEvent>)
Declaration
public void Unsubscribe<TEvent>(ILocalEventHandler<TEvent> handler) where TEvent : class
Parameters
Type Parameters
Implements
Extension Methods