Class RuntimeScheduler
Should only be used as a singleton. This class requires to have IRuntimeResolver and IModelStore implemented and provided as a services. It also implies that Runtime should have PersistUpdates set to true
public class RuntimeScheduler
- Inheritance
-
RuntimeScheduler
- Inherited Members
- Extension Methods
Constructors
RuntimeScheduler(ISchedulerContextService, ILogger<RuntimeScheduler>)
public RuntimeScheduler(ISchedulerContextService context, ILogger<RuntimeScheduler> logger)
Parameters
context
ISchedulerContextServicelogger
ILogger<RuntimeScheduler>
Properties
SchedulerIsPaused
public bool SchedulerIsPaused { get; }
Property Value
ThreadIsAlive
public bool ThreadIsAlive { get; }
Property Value
Methods
Count()
public int Count()
Returns
Entries()
public IEnumerable<(string, DateTimeOffset)> Entries()
Returns
PauseScheduler(bool)
public void PauseScheduler(bool Paused = true)
Parameters
Paused
bool
Schedule(string, DateTimeOffset, Dictionary<string, string>?, Dictionary<string, string>?)
public void Schedule(string caseId, DateTimeOffset nextDelay, Dictionary<string, string>? context = null, Dictionary<string, string>? secrets = null)
Parameters
caseId
stringnextDelay
DateTimeOffsetcontext
Dictionary<string, string>secrets
Dictionary<string, string>