Class AsyncPeriodicBackgroundWorkerBase
Inheritance
AsyncPeriodicBackgroundWorkerBase
Assembly: Volo.Abp.BackgroundWorkers.dll
Syntax
public abstract class AsyncPeriodicBackgroundWorkerBase : BackgroundWorkerBase, IBackgroundWorker, IRunnable, ISingletonDependency
Constructors
AsyncPeriodicBackgroundWorkerBase(AbpAsyncTimer, IServiceScopeFactory)
Declaration
protected AsyncPeriodicBackgroundWorkerBase(AbpAsyncTimer timer, IServiceScopeFactory serviceScopeFactory)
Parameters
Properties
ServiceScopeFactory
Declaration
protected IServiceScopeFactory ServiceScopeFactory { get; }
Property Value
StartCancellationToken
Declaration
protected CancellationToken StartCancellationToken { get; set; }
Property Value
Timer
Declaration
protected AbpAsyncTimer Timer { get; }
Property Value
Methods
DoWorkAsync(PeriodicBackgroundWorkerContext)
Declaration
protected abstract Task DoWorkAsync(PeriodicBackgroundWorkerContext workerContext)
Parameters
Returns
StartAsync(CancellationToken)
Declaration
public override Task StartAsync(CancellationToken cancellationToken = default)
Parameters
Returns
Overrides
StopAsync(CancellationToken)
Declaration
public override Task StopAsync(CancellationToken cancellationToken = default)
Parameters
Returns
Overrides
Implements
Extension Methods