Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Class MultiServerRestorer

OptimaJet.Workflow.Core.Runtime.ServiceRunners.MultiServerRestorer

Provides multi-server process restoring behavior by delegating restore execution to RestorerBase.

public class MultiServerRestorer : RestorerBase

Inheritance

Constructors

public MultiServerRestorer(WorkflowRuntime runtimeOwner, CancellationToken token) #
Initializes a new instance of the MultiServerRestorer class.

Parameters

Name
Type
Description
runtimeOwner
WorkflowRuntime
Runtime owner whose process data and restorers are used during restore execution.
token
CancellationToken
Token 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
processId
Guid
Identifier of the process instance to restore.
runtimeId
String
Identifier of the runtime currently participating in restore coordination.
isSelfRestore
Boolean
true when the runtime being restored is the current runtime instance; false when restoring on behalf of another runtime.
runtimeLock
Guid
Expected lock value used to detect stale runtime ownership.

Returns

Type
Description
Func<Task>
A delegate that performs the restore action when invoked.