Interface IEventBus
Assembly: Volo.Abp.EventBus.Abstractions.dll
Syntax
public interface IEventBus
Methods
PublishAsync(Type, object, bool)
Declaration
Task PublishAsync(Type eventType, object eventData, bool onUnitOfWorkComplete = true)
Parameters
Type |
Name |
Description |
System.Type |
eventType |
|
object |
eventData |
|
bool |
onUnitOfWorkComplete |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
PublishAsync<TEvent>(TEvent, bool)
Declaration
Task PublishAsync<TEvent>(TEvent eventData, bool onUnitOfWorkComplete = true) where TEvent : class
Parameters
Type |
Name |
Description |
TEvent |
eventData |
|
bool |
onUnitOfWorkComplete |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Type Parameters
Subscribe(Type, IEventHandler)
Declaration
IDisposable Subscribe(Type eventType, IEventHandler handler)
Parameters
Type |
Name |
Description |
System.Type |
eventType |
|
IEventHandler |
handler |
|
Returns
Type |
Description |
System.IDisposable |
|
Subscribe(Type, IEventHandlerFactory)
Declaration
IDisposable Subscribe(Type eventType, IEventHandlerFactory factory)
Parameters
Returns
Type |
Description |
System.IDisposable |
|
Subscribe<TEvent>(Func<TEvent, Task>)
Declaration
IDisposable Subscribe<TEvent>(Func<TEvent, Task> action) where TEvent : class
Parameters
Type |
Name |
Description |
System.Func<T, TResult><TEvent, System.Threading.Tasks.Task> |
action |
|
Returns
Type |
Description |
System.IDisposable |
|
Type Parameters
Subscribe<TEvent>(IEventHandlerFactory)
Declaration
IDisposable Subscribe<TEvent>(IEventHandlerFactory factory) where TEvent : class
Parameters
Returns
Type |
Description |
System.IDisposable |
|
Type Parameters
Subscribe<TEvent, THandler>()
Declaration
IDisposable Subscribe<TEvent, THandler>() where TEvent : class where THandler : IEventHandler, new()
Returns
Type |
Description |
System.IDisposable |
|
Type Parameters
Name |
Description |
TEvent |
|
THandler |
|
Unsubscribe(Type, IEventHandler)
Declaration
void Unsubscribe(Type eventType, IEventHandler handler)
Parameters
Type |
Name |
Description |
System.Type |
eventType |
|
IEventHandler |
handler |
|
Unsubscribe(Type, IEventHandlerFactory)
Declaration
void Unsubscribe(Type eventType, IEventHandlerFactory factory)
Parameters
Unsubscribe<TEvent>(Func<TEvent, Task>)
Declaration
void Unsubscribe<TEvent>(Func<TEvent, Task> action) where TEvent : class
Parameters
Type |
Name |
Description |
System.Func<T, TResult><TEvent, System.Threading.Tasks.Task> |
action |
|
Type Parameters
Unsubscribe<TEvent>(IEventHandlerFactory)
Declaration
void Unsubscribe<TEvent>(IEventHandlerFactory factory) where TEvent : class
Parameters
Type Parameters
Unsubscribe<TEvent>(ILocalEventHandler<TEvent>)
Declaration
void Unsubscribe<TEvent>(ILocalEventHandler<TEvent> handler) where TEvent : class
Parameters
Type Parameters
UnsubscribeAll(Type)
Declaration
void UnsubscribeAll(Type eventType)
Parameters
Type |
Name |
Description |
System.Type |
eventType |
|
UnsubscribeAll<TEvent>()
Declaration
void UnsubscribeAll<TEvent>() where TEvent : class
Type Parameters
Extension Methods