Interface IBackgroundJobManager
Defines interface of a job manager.
Namespace: Volo.Abp.BackgroundJobs
Assembly: Volo.Abp.BackgroundJobs.Abstractions.dll
Syntax
public interface IBackgroundJobManager
Methods
EnqueueAsync<TArgs>(TArgs, BackgroundJobPriority, Nullable<TimeSpan>)
Enqueues a job to be executed.
Declaration
Task<string> EnqueueAsync<TArgs>(TArgs args, BackgroundJobPriority priority = default(BackgroundJobPriority), TimeSpan? delay = null)
Parameters
Type | Name | Description |
---|---|---|
TArgs | args | Job arguments. |
BackgroundJobPriority | priority | Job priority. |
System.Nullable<TimeSpan> | delay | Job delay (wait duration before first try). |
Returns
Type | Description |
---|---|
Task<System.String> | Unique identifier of a background job. |
Type Parameters
Name | Description |
---|---|
TArgs | Type of the arguments of job. |