Class QuartzBackgroundJobManager
Inheritance
object
QuartzBackgroundJobManager
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Assembly: Volo.Abp.BackgroundJobs.Quartz.dll
Syntax
[Dependency(ReplaceServices = true)]
public class QuartzBackgroundJobManager : IBackgroundJobManager, ITransientDependency
Constructors
QuartzBackgroundJobManager(IScheduler, IOptions<AbpBackgroundJobQuartzOptions>, IJsonSerializer)
Declaration
public QuartzBackgroundJobManager(IScheduler scheduler, IOptions<AbpBackgroundJobQuartzOptions> options, IJsonSerializer jsonSerializer)
Parameters
Fields
JobDataPrefix
Declaration
public const string JobDataPrefix = "Abp"
Field Value
RetryIndex
Declaration
public const string RetryIndex = "RetryIndex"
Field Value
Properties
JsonSerializer
Declaration
protected IJsonSerializer JsonSerializer { get; }
Property Value
Options
Declaration
protected AbpBackgroundJobQuartzOptions Options { get; }
Property Value
Scheduler
Declaration
protected IScheduler Scheduler { get; }
Property Value
| Type |
Description |
| Quartz.IScheduler |
|
Methods
EnqueueAsync<TArgs>(TArgs, BackgroundJobPriority, TimeSpan?)
Declaration
public virtual Task<string> EnqueueAsync<TArgs>(TArgs args, BackgroundJobPriority priority = BackgroundJobPriority.Normal, TimeSpan? delay = null)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><string> |
|
Type Parameters
ReEnqueueAsync<TArgs>(TArgs, int, int, BackgroundJobPriority, TimeSpan?)
Declaration
public virtual Task<string> ReEnqueueAsync<TArgs>(TArgs args, int retryCount, int retryIntervalMillisecond, BackgroundJobPriority priority = BackgroundJobPriority.Normal, TimeSpan? delay = null)
Parameters
| Type |
Name |
Description |
| TArgs |
args |
|
| int |
retryCount |
|
| int |
retryIntervalMillisecond |
|
| BackgroundJobPriority |
priority |
|
| System.TimeSpan? |
delay |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><string> |
|
Type Parameters
Implements
Extension Methods