Class MultiServerRestorer
OptimaJet.Workflow.Core.Runtime.ServiceRunners.MultiServerRestorer
Provides multi-server process restoring behavior by delegating restore execution to RestorerBase.
Namespace: OptimaJet.Workflow.Core.Runtime.ServiceRunners
public class MultiServerRestorer : RestorerBaseInheritance
- Object
- RestorerBase
Constructors
public MultiServerRestorer(WorkflowRuntime runtimeOwner, CancellationToken token) #Initializes a new instance of the MultiServerRestorer class.
Parameters
Name
Type
Description
runtimeOwnerWorkflowRuntimeRuntime owner whose process data and restorers are used during restore execution.
tokenCancellationTokenToken that is observed when the returned restore action starts.
Methods
public Func<Task> GetRestorerAsyncAction(Guid processId, string runtimeId, bool isSelfRestore, Guid runtimeLock) #Creates an asynchronous restore action for a single process in a multi-server runtime.
Parameters
Name
Type
Description
processIdGuidIdentifier of the process instance to restore.
runtimeIdStringIdentifier of the runtime currently participating in restore coordination.
isSelfRestoreBooleanruntimeLockGuidExpected lock value used to detect stale runtime ownership.
Returns
Type
Description
Func<Task>A delegate that performs the restore action when invoked.