Table of Contents

Class RuntimeScheduler

Namespace
DCR.Workflow
Assembly
DCR.Workflow.dll

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 ISchedulerContextService
logger ILogger<RuntimeScheduler>

Properties

SchedulerIsPaused

public bool SchedulerIsPaused { get; }

Property Value

bool

ThreadIsAlive

public bool ThreadIsAlive { get; }

Property Value

bool

Methods

Count()

public int Count()

Returns

int

Entries()

public IEnumerable<(string, DateTimeOffset)> Entries()

Returns

IEnumerable<(string, DateTimeOffset)>

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 string
nextDelay DateTimeOffset
context Dictionary<string, string>
secrets Dictionary<string, string>