Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Class SingleServerRestorer

OptimaJet.Workflow.Core.Runtime.ServiceRunners.SingleServerRestorer

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

public class SingleServerRestorer : RestorerBase

Inheritance

Constructors

public SingleServerRestorer(WorkflowRuntime runtimeOwner, CancellationToken token) #
Initializes a new instance of the SingleServerRestorer 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) #
Creates an asynchronous restore action for a single process in a single-server runtime.

Parameters

Name
Type
Description
processId
Guid
Identifier of the process instance to restore.

Returns

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