BackgroundJob Class |
Namespace: Hangfire
Name | Description | |
---|---|---|
ContinueWith(String, ExpressionAction) | ||
ContinueWith(String, ExpressionAction, JobContinuationOptions) | ||
ContinueWithT(String, ExpressionActionT) | ||
ContinueWithT(String, ExpressionActionT, JobContinuationOptions) | ||
Delete(String) |
Changes state of a job with the specified jobId
to the DeletedState.
| |
Delete(String, String) |
Changes state of a job with the specified jobId
to the DeletedState. State change is only performed
if current job state is equal to the fromState value.
| |
Enqueue(ExpressionAction) |
Creates a new fire-and-forget job based on a given method call expression.
| |
EnqueueT(ExpressionActionT) |
Creates a new fire-and-forget job based on a given method call expression.
| |
Requeue(String) |
Changes state of a job with the specified jobId
to the EnqueuedState.
| |
Requeue(String, String) |
Changes state of a job with the specified jobId
to the EnqueuedState. If fromState value
is not null, state change will be performed only if the current state name
of a job equal to the given value.
| |
Schedule(ExpressionAction, DateTimeOffset) |
Creates a new background job based on a specified method call expression
and schedules it to be enqueued at the given moment of time.
| |
Schedule(ExpressionAction, TimeSpan) |
Creates a new background job based on a specified static method
call expression and schedules it to be enqueued after a given delay.
| |
ScheduleT(ExpressionActionT, DateTimeOffset) |
Creates a new background job based on a specified method call expression
and schedules it to be enqueued at the given moment of time.
| |
ScheduleT(ExpressionActionT, TimeSpan) |
Creates a new background job based on a specified instance method
call expression and schedules it to be enqueued after a given delay.
|
This class is a wrapper for the IBackgroundJobClient interface and its default implementation, BackgroundJobClient class, that was created for the most simple scenarios. Please consider using the types above in real world applications.
This class also contains undocumented constructor and instance members. They are hidden to not to confuse new users. You can freely use them in low-level API.