Class ScheduleTaskState<TKey>
Represents a snapshot of schedule task's state.
public sealed record ScheduleTaskState<TKey> : IEquatable<ScheduleTaskState<TKey>> where TKey : notnull
Type Parameters
TKey
Scheduler's key type.
- Inheritance
-
ScheduleTaskState<TKey>
- Implements
-
IEquatable<ScheduleTaskState<TKey>>
- Inherited Members
Constructors
ScheduleTaskState(ReactiveTaskSnapshot<IScheduleTask<TKey>>, Timestamp?, Duration, int?, bool)
Represents a snapshot of schedule task's state.
public ScheduleTaskState(ReactiveTaskSnapshot<IScheduleTask<TKey>> State, Timestamp? NextTimestamp, Duration Interval, int? Repetitions, bool IsDisposed)
Parameters
State
ReactiveTaskSnapshot<IScheduleTask<TKey>>Underlying state.
NextTimestamp
Timestamp?Next Timestamp at which this task should be invoked.
Interval
DurationDuration between subsequent task invocations.
Repetitions
int?Number of repetitions of this task.
IsDisposed
boolSpecifies whether or not the task has been disposed.
Properties
Interval
Duration between subsequent task invocations.
public Duration Interval { get; init; }
Property Value
IsDisposed
Specifies whether or not the task has been disposed.
public bool IsDisposed { get; init; }
Property Value
IsInfinite
Specifies whether or not this task repeats infinitely.
public bool IsInfinite { get; }
Property Value
NextTimestamp
Next Timestamp at which this task should be invoked.
public Timestamp? NextTimestamp { get; init; }
Property Value
Repetitions
Number of repetitions of this task.
public int? Repetitions { get; init; }
Property Value
- int?
State
Underlying state.
public ReactiveTaskSnapshot<IScheduleTask<TKey>> State { get; init; }