Class InboxProcessor
Inheritance
InboxProcessor
Assembly: Volo.Abp.EventBus.dll
Syntax
public class InboxProcessor : IInboxProcessor, ITransientDependency
Constructors
InboxProcessor(IServiceProvider, AbpAsyncTimer, IDistributedEventBus, IAbpDistributedLock, IUnitOfWorkManager, IClock, IOptions<AbpEventBusBoxesOptions>)
Declaration
public InboxProcessor(IServiceProvider serviceProvider, AbpAsyncTimer timer, IDistributedEventBus distributedEventBus, IAbpDistributedLock distributedLock, IUnitOfWorkManager unitOfWorkManager, IClock clock, IOptions<AbpEventBusBoxesOptions> eventBusBoxesOptions)
Parameters
Properties
Clock
Declaration
protected IClock Clock { get; }
Property Value
DistributedEventBus
Declaration
protected IDistributedEventBus DistributedEventBus { get; }
Property Value
DistributedLock
Declaration
protected IAbpDistributedLock DistributedLock { get; }
Property Value
DistributedLockName
Declaration
protected string DistributedLockName { get; }
Property Value
EventBusBoxesOptions
Declaration
protected AbpEventBusBoxesOptions EventBusBoxesOptions { get; }
Property Value
Inbox
Declaration
protected IEventInbox Inbox { get; }
Property Value
InboxConfig
Declaration
protected InboxConfig InboxConfig { get; }
Property Value
LastCleanTime
Declaration
protected DateTime? LastCleanTime { get; set; }
Property Value
Logger
Declaration
public ILogger<InboxProcessor> Logger { get; set; }
Property Value
ServiceProvider
Declaration
protected IServiceProvider ServiceProvider { get; }
Property Value
StoppingToken
Declaration
protected CancellationToken StoppingToken { get; }
Property Value
StoppingTokenSource
Declaration
protected CancellationTokenSource StoppingTokenSource { get; }
Property Value
Timer
Declaration
protected AbpAsyncTimer Timer { get; }
Property Value
UnitOfWorkManager
Declaration
protected IUnitOfWorkManager UnitOfWorkManager { get; }
Property Value
Methods
DeleteOldEventsAsync()
Declaration
protected virtual Task DeleteOldEventsAsync()
Returns
RunAsync()
Declaration
protected virtual Task RunAsync()
Returns
StartAsync(InboxConfig, CancellationToken)
Declaration
public Task StartAsync(InboxConfig inboxConfig, CancellationToken cancellationToken = default)
Parameters
Returns
StopAsync(CancellationToken)
Declaration
public Task StopAsync(CancellationToken cancellationToken = default)
Parameters
Returns
Implements
Extension Methods