Class DistributedEventBusBase
Inheritance
DistributedEventBusBase
Assembly: Volo.Abp.EventBus.dll
Syntax
public abstract class DistributedEventBusBase : EventBusBase, IDistributedEventBus, IEventBus, ISupportsEventBoxes
Constructors
DistributedEventBusBase(IServiceScopeFactory, ICurrentTenant, IUnitOfWorkManager, IOptions<AbpDistributedEventBusOptions>, IGuidGenerator, IClock, IEventHandlerInvoker, ILocalEventBus, ICorrelationIdProvider)
Declaration
protected DistributedEventBusBase(IServiceScopeFactory serviceScopeFactory, ICurrentTenant currentTenant, IUnitOfWorkManager unitOfWorkManager, IOptions<AbpDistributedEventBusOptions> abpDistributedEventBusOptions, IGuidGenerator guidGenerator, IClock clock, IEventHandlerInvoker eventHandlerInvoker, ILocalEventBus localEventBus, ICorrelationIdProvider correlationIdProvider)
Parameters
Properties
AbpDistributedEventBusOptions
Declaration
protected AbpDistributedEventBusOptions AbpDistributedEventBusOptions { get; }
Property Value
Clock
Declaration
protected IClock Clock { get; }
Property Value
CorrelationIdProvider
Declaration
protected ICorrelationIdProvider CorrelationIdProvider { get; }
Property Value
GuidGenerator
Declaration
protected IGuidGenerator GuidGenerator { get; }
Property Value
LocalEventBus
Declaration
protected ILocalEventBus LocalEventBus { get; }
Property Value
Methods
AddToInboxAsync(string?, string, Type, object, string?)
Declaration
protected Task<bool> AddToInboxAsync(string? messageId, string eventName, Type eventType, object eventData, string? correlationId)
Parameters
Returns
AddToOutboxAsync(Type, object)
Declaration
protected virtual Task<bool> AddToOutboxAsync(Type eventType, object eventData)
Parameters
Type |
Name |
Description |
Type |
eventType |
|
object |
eventData |
|
Returns
OnAddToOutboxAsync(string, Type, object)
Declaration
protected virtual Task OnAddToOutboxAsync(string eventName, Type eventType, object eventData)
Parameters
Returns
ProcessFromInboxAsync(IncomingEventInfo, InboxConfig)
Declaration
public abstract Task ProcessFromInboxAsync(IncomingEventInfo incomingEvent, InboxConfig inboxConfig)
Parameters
Returns
PublishAsync(Type, object, bool)
Declaration
public override Task PublishAsync(Type eventType, object eventData, bool onUnitOfWorkComplete = true)
Parameters
Type |
Name |
Description |
Type |
eventType |
|
object |
eventData |
|
bool |
onUnitOfWorkComplete |
|
Returns
Overrides
PublishAsync(Type, object, bool, bool)
Declaration
public Task PublishAsync(Type eventType, object eventData, bool onUnitOfWorkComplete = true, bool useOutbox = true)
Parameters
Type |
Name |
Description |
Type |
eventType |
|
object |
eventData |
|
bool |
onUnitOfWorkComplete |
|
bool |
useOutbox |
|
Returns
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 Parameters
PublishFromOutboxAsync(OutgoingEventInfo, OutboxConfig)
Declaration
public abstract Task PublishFromOutboxAsync(OutgoingEventInfo outgoingEvent, OutboxConfig outboxConfig)
Parameters
Returns
PublishManyFromOutboxAsync(IEnumerable<OutgoingEventInfo>, OutboxConfig)
Declaration
public abstract Task PublishManyFromOutboxAsync(IEnumerable<OutgoingEventInfo> outgoingEvents, OutboxConfig outboxConfig)
Parameters
Returns
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 Parameters
TriggerDistributedEventReceivedAsync(DistributedEventReceived)
Declaration
public virtual Task TriggerDistributedEventReceivedAsync(DistributedEventReceived distributedEvent)
Parameters
Returns
TriggerDistributedEventSentAsync(DistributedEventSent)
Declaration
public virtual Task TriggerDistributedEventSentAsync(DistributedEventSent distributedEvent)
Parameters
Returns
TriggerHandlersDirectAsync(Type, object)
Declaration
protected virtual Task TriggerHandlersDirectAsync(Type eventType, object eventData)
Parameters
Type |
Name |
Description |
Type |
eventType |
|
object |
eventData |
|
Returns
TriggerHandlersFromInboxAsync(Type, object, List<Exception>, InboxConfig?)
Declaration
protected virtual Task TriggerHandlersFromInboxAsync(Type eventType, object eventData, List<Exception> exceptions, InboxConfig? inboxConfig = null)
Parameters
Returns
Implements
Extension Methods