Class DefaultBackgroundJobManager
Inheritance
System.Object
DefaultBackgroundJobManager
Assembly: Volo.Abp.BackgroundJobs.dll
Syntax
public class DefaultBackgroundJobManager : object, IBackgroundJobManager, ITransientDependency
Constructors
DefaultBackgroundJobManager(IClock, IBackgroundJobSerializer, IBackgroundJobStore, IGuidGenerator)
Declaration
public DefaultBackgroundJobManager(IClock clock, IBackgroundJobSerializer serializer, IBackgroundJobStore store, IGuidGenerator guidGenerator)
Parameters
Properties
Clock
Declaration
protected IClock Clock { get; }
Property Value
GuidGenerator
Declaration
protected IGuidGenerator GuidGenerator { get; }
Property Value
Serializer
Declaration
protected IBackgroundJobSerializer Serializer { get; }
Property Value
Store
Declaration
protected IBackgroundJobStore Store { get; }
Property Value
Methods
EnqueueAsync(String, Object, BackgroundJobPriority, Nullable<TimeSpan>)
Declaration
protected virtual Task<Guid> EnqueueAsync(string jobName, object args, BackgroundJobPriority priority = default(BackgroundJobPriority), TimeSpan? delay = null)
Parameters
Type |
Name |
Description |
System.String |
jobName |
|
System.Object |
args |
|
BackgroundJobPriority |
priority |
|
System.Nullable<TimeSpan> |
delay |
|
Returns
Type |
Description |
Task<Guid> |
|
EnqueueAsync<TArgs>(TArgs, BackgroundJobPriority, Nullable<TimeSpan>)
Declaration
public virtual Task<string> EnqueueAsync<TArgs>(TArgs args, BackgroundJobPriority priority = default(BackgroundJobPriority), TimeSpan? delay = null)
Parameters
Returns
Type |
Description |
Task<System.String> |
|
Type Parameters
Implements
Extension Methods