Class DistributedEventBusBase
Inheritance
object
DistributedEventBusBase
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Assembly: Volo.Abp.EventBus.dll
Syntax
public abstract class DistributedEventBusBase : EventBusBase, IDistributedEventBus, IEventBus, ISupportsEventBoxes
Constructors
DistributedEventBusBase(IServiceScopeFactory, ICurrentTenant, IUnitOfWorkManager, IOptions<AbpDistributedEventBusOptions>, IGuidGenerator, IClock, IEventHandlerInvoker)
Declaration
protected DistributedEventBusBase(IServiceScopeFactory serviceScopeFactory, ICurrentTenant currentTenant, IUnitOfWorkManager unitOfWorkManager, IOptions<AbpDistributedEventBusOptions> abpDistributedEventBusOptions, IGuidGenerator guidGenerator, IClock clock, IEventHandlerInvoker eventHandlerInvoker)
Parameters
Properties
AbpDistributedEventBusOptions
Declaration
protected AbpDistributedEventBusOptions AbpDistributedEventBusOptions { get; }
Property Value
Clock
Declaration
protected IClock Clock { get; }
Property Value
GuidGenerator
Declaration
protected IGuidGenerator GuidGenerator { get; }
Property Value
Methods
AddToInboxAsync(string, string, Type, byte[])
Declaration
protected Task<bool> AddToInboxAsync(string messageId, string eventName, Type eventType, byte[] eventBytes)
Parameters
| Type |
Name |
Description |
| string |
messageId |
|
| string |
eventName |
|
| System.Type |
eventType |
|
| byte[] |
eventBytes |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><bool> |
|
ProcessFromInboxAsync(IncomingEventInfo, InboxConfig)
Declaration
public abstract Task ProcessFromInboxAsync(IncomingEventInfo incomingEvent, InboxConfig inboxConfig)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
PublishAsync(Type, object, bool, bool)
Declaration
public 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(Type, object, bool)
Declaration
public override 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 |
|
Overrides
PublishAsync<TEvent>(TEvent, bool, bool)
Declaration
public 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
PublishFromOutboxAsync(OutgoingEventInfo, OutboxConfig)
Declaration
public abstract Task PublishFromOutboxAsync(OutgoingEventInfo outgoingEvent, OutboxConfig outboxConfig)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
PublishManyFromOutboxAsync(IEnumerable<OutgoingEventInfo>, OutboxConfig)
Declaration
public abstract Task PublishManyFromOutboxAsync(IEnumerable<OutgoingEventInfo> outgoingEvents, OutboxConfig outboxConfig)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Serialize(object)
Declaration
protected abstract byte[] Serialize(object eventData)
Parameters
| Type |
Name |
Description |
| object |
eventData |
|
Returns
Subscribe<TEvent>(IDistributedEventHandler<TEvent>)
Declaration
public IDisposable Subscribe<TEvent>(IDistributedEventHandler<TEvent> handler) where TEvent : class
Parameters
Returns
| Type |
Description |
| System.IDisposable |
|
Type Parameters
Implements
Extension Methods