Class UnitOfWorkEventPublisher
Inheritance
object
UnitOfWorkEventPublisher
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.EventBus
Assembly: Volo.Abp.EventBus.dll
Syntax
[Dependency(ReplaceServices = true)]
public class UnitOfWorkEventPublisher : IUnitOfWorkEventPublisher, ITransientDependency
Constructors
UnitOfWorkEventPublisher(ILocalEventBus, IDistributedEventBus)
Declaration
public UnitOfWorkEventPublisher(ILocalEventBus localEventBus, IDistributedEventBus distributedEventBus)
Parameters
| Type | Name | Description |
|---|---|---|
| ILocalEventBus | localEventBus | |
| IDistributedEventBus | distributedEventBus |
Methods
PublishDistributedEventsAsync(IEnumerable<UnitOfWorkEventRecord>)
Declaration
public Task PublishDistributedEventsAsync(IEnumerable<UnitOfWorkEventRecord> distributedEvents)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<T><UnitOfWorkEventRecord> | distributedEvents |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
PublishLocalEventsAsync(IEnumerable<UnitOfWorkEventRecord>)
Declaration
public Task PublishLocalEventsAsync(IEnumerable<UnitOfWorkEventRecord> localEvents)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<T><UnitOfWorkEventRecord> | localEvents |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |