![]() | ScheduledState Class |
Namespace: Hangfire.States
The ScheduledState type exposes the following members.
Name | Description | |
---|---|---|
![]() | ScheduledState(DateTime) |
Initializes a new instance of the ScheduledState
class with the specified date/time in UTC format when a job should
be moved to the EnqueuedState.
|
![]() | ScheduledState(TimeSpan) |
Initializes a new instance of the ScheduledState class
with the specified time interval after which a job should be moved to
the EnqueuedState.
|
Name | Description | |
---|---|---|
![]() | EnqueueAt |
Gets a date/time when a background job should be enqueued.
|
![]() | IgnoreJobLoadException |
Gets whether transition to this state should ignore job de-serialization
exceptions.
|
![]() | IsFinal |
Gets if the current state is a final one.
|
![]() | Name |
Gets the unique name of the state.
|
![]() | Reason |
Gets the human-readable reason of a state transition.
|
![]() | ScheduledAt |
Gets a date/time when the current state instance was created.
|
Name | Description | |
---|---|---|
![]() | SerializeData |
Gets a serialized representation of the current state.
|
Background job in ScheduledState is referred as delayed job.
var client = new BackgroundJobClient(); var state = new ScheduledState(TimeSpan.FromHours(2)); client.Create(() => Console.WriteLine("Hello!"), state);