Show / Hide Table of Contents

Class OutboxSender

Inheritance
object
OutboxSender
Implements
IOutboxSender
ITransientDependency
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.Distributed
Assembly: Volo.Abp.EventBus.dll
Syntax
public class OutboxSender : IOutboxSender, ITransientDependency

Constructors

OutboxSender(IServiceProvider, AbpAsyncTimer, IDistributedEventBus, IAbpDistributedLock, IOptions<AbpEventBusBoxesOptions>)

Declaration
public OutboxSender(IServiceProvider serviceProvider, AbpAsyncTimer timer, IDistributedEventBus distributedEventBus, IAbpDistributedLock distributedLock, IOptions<AbpEventBusBoxesOptions> eventBusBoxesOptions)
Parameters
Type Name Description
IServiceProvider serviceProvider
AbpAsyncTimer timer
IDistributedEventBus distributedEventBus
IAbpDistributedLock distributedLock
IOptions<AbpEventBusBoxesOptions> eventBusBoxesOptions

Properties

DistributedEventBus

Declaration
protected IDistributedEventBus DistributedEventBus { get; }
Property Value
Type Description
IDistributedEventBus

DistributedLock

Declaration
protected IAbpDistributedLock DistributedLock { get; }
Property Value
Type Description
IAbpDistributedLock

DistributedLockName

Declaration
protected string DistributedLockName { get; }
Property Value
Type Description
string

EventBusBoxesOptions

Declaration
protected AbpEventBusBoxesOptions EventBusBoxesOptions { get; }
Property Value
Type Description
AbpEventBusBoxesOptions

Logger

Declaration
public ILogger<OutboxSender> Logger { get; set; }
Property Value
Type Description
ILogger<OutboxSender>

Outbox

Declaration
protected IEventOutbox Outbox { get; }
Property Value
Type Description
IEventOutbox

OutboxConfig

Declaration
protected OutboxConfig OutboxConfig { get; }
Property Value
Type Description
OutboxConfig

ServiceProvider

Declaration
protected IServiceProvider ServiceProvider { get; }
Property Value
Type Description
IServiceProvider

StoppingToken

Declaration
protected CancellationToken StoppingToken { get; }
Property Value
Type Description
CancellationToken

StoppingTokenSource

Declaration
protected CancellationTokenSource StoppingTokenSource { get; }
Property Value
Type Description
CancellationTokenSource

Timer

Declaration
protected AbpAsyncTimer Timer { get; }
Property Value
Type Description
AbpAsyncTimer

Methods

PublishOutgoingMessagesAsync(List<OutgoingEventInfo>)

Declaration
protected virtual Task PublishOutgoingMessagesAsync(List<OutgoingEventInfo> waitingEvents)
Parameters
Type Name Description
List<OutgoingEventInfo> waitingEvents
Returns
Type Description
Task

PublishOutgoingMessagesInBatchAsync(List<OutgoingEventInfo>)

Declaration
protected virtual Task PublishOutgoingMessagesInBatchAsync(List<OutgoingEventInfo> waitingEvents)
Parameters
Type Name Description
List<OutgoingEventInfo> waitingEvents
Returns
Type Description
Task

RunAsync()

Declaration
protected virtual Task RunAsync()
Returns
Type Description
Task

StartAsync(OutboxConfig, CancellationToken)

Declaration
public virtual Task StartAsync(OutboxConfig outboxConfig, CancellationToken cancellationToken = default)
Parameters
Type Name Description
OutboxConfig outboxConfig
CancellationToken cancellationToken
Returns
Type Description
Task

StopAsync(CancellationToken)

Declaration
public virtual Task StopAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken
Returns
Type Description
Task

Implements

IOutboxSender
ITransientDependency

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform