Interface IDistributedEventBus
Assembly: Volo.Abp.EventBus.dll
Syntax
public interface IDistributedEventBus : IEventBus
Methods
PublishAsync(Type, object, bool, bool)
Declaration
Task PublishAsync(Type eventType, object eventData, bool onUnitOfWorkComplete = true, bool useOutbox = true)
Parameters
| Type |
Name |
Description |
| System.Type |
eventType |
|
| object |
eventData |
|
| bool |
onUnitOfWorkComplete |
|
| bool |
useOutbox |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
PublishAsync<TEvent>(TEvent, bool, bool)
Declaration
Task PublishAsync<TEvent>(TEvent eventData, bool onUnitOfWorkComplete = true, bool useOutbox = true) where TEvent : class
Parameters
| Type |
Name |
Description |
| TEvent |
eventData |
|
| bool |
onUnitOfWorkComplete |
|
| bool |
useOutbox |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Type Parameters
Subscribe<TEvent>(IDistributedEventHandler<TEvent>)
Declaration
IDisposable Subscribe<TEvent>(IDistributedEventHandler<TEvent> handler) where TEvent : class
Parameters
Returns
| Type |
Description |
| System.IDisposable |
|
Type Parameters
Extension Methods