Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Class MultiServerServiceRunner

OptimaJet.Workflow.Core.Runtime.ServiceRunners.MultiServerServiceRunner

Provides a service runner implementation for multi-server workflow runtime execution.

public sealed class MultiServerServiceRunner : IWorkflowServiceRunner

Inheritance

  • Object

Implemented Interfaces

Constructors

public MultiServerServiceRunner(WorkflowRuntime runtimeOwner, IMultiServerSettingsSource settingsSource) #
Initializes a new multi-server service runner for the specified runtime.

Parameters

Name
Type
Description
runtimeOwner
WorkflowRuntime
The runtime instance that owns this service runner.
settingsSource
IMultiServerSettingsSource
The source of MultiServerSettings for this runtime.

Properties

Name
Type
IsSupportsMultiServer #
Boolean
Gets a value indicating that the runner is designed for multi-server execution.
SettingsSource #
IMultiServerSettingsSource
Gets the settings source used to read multi-server runtime configuration.

Methods

public Task StartAsync(ITimerManager manager) #
Starts the multi-server service runner.

Parameters

Name
Type
Description
manager
ITimerManager
The timer manager passed by WorkflowRuntime startup flow.

Returns

Type
Description
Task
A task that is completed after startup checks and initialization are finished.

Remarks

The runner validates startup conditions, coordinates the runtime status lifecycle, and registers the alive and service timers used for process coordination.