Class HangfireBackgroundWorkerManager
Inheritance
HangfireBackgroundWorkerManager
Assembly: Volo.Abp.BackgroundWorkers.Hangfire.dll
Syntax
[Dependency(ReplaceServices = true)]
[ExposeServices(new Type[] { typeof(IBackgroundWorkerManager), typeof(HangfireBackgroundWorkerManager) })]
public class HangfireBackgroundWorkerManager : BackgroundWorkerManager, IBackgroundWorkerManager, IRunnable, IDisposable, ISingletonDependency
Constructors
HangfireBackgroundWorkerManager(IServiceProvider)
Declaration
public HangfireBackgroundWorkerManager(IServiceProvider serviceProvider)
Parameters
Properties
BackgroundJobServer
Declaration
protected AbpHangfireBackgroundJobServer BackgroundJobServer { get; set; }
Property Value
ServiceProvider
Declaration
protected IServiceProvider ServiceProvider { get; }
Property Value
Methods
AddAsync(IBackgroundWorker, CancellationToken)
Declaration
public override Task AddAsync(IBackgroundWorker worker, CancellationToken cancellationToken = default)
Parameters
Returns
Overrides
GetCron(int)
Declaration
protected virtual string GetCron(int period)
Parameters
Type |
Name |
Description |
int |
period |
|
Returns
Initialize()
Declaration
Implements
Extension Methods