Class ProcessManagerExecutionStrategy
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Behaviors.Patterns.Strategies
Assembly: Cephalon.Behaviors.Patterns.dll
Executes behaviors that follow the process-manager pattern.
Loads the process checkpoint before invocation, saves it after a successful step,
and deletes it when the process signals completion via
public sealed class ProcessManagerExecutionStrategy : IBehaviorExecutionStrategyInheritance
Section titled “Inheritance”object ← ProcessManagerExecutionStrategy
Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”ProcessManagerExecutionStrategy(IProcessCheckpointStore, ILogger<ProcessManagerExecutionStrategy>)
Section titled “ ProcessManagerExecutionStrategy(IProcessCheckpointStore, ILogger<ProcessManagerExecutionStrategy>)”Initializes a new instance of
public ProcessManagerExecutionStrategy(IProcessCheckpointStore store, ILogger<ProcessManagerExecutionStrategy> logger)Parameters
Section titled “Parameters”store IProcessCheckpointStore
The checkpoint store used to load and persist process checkpoints.
logger ILogger<ProcessManagerExecutionStrategy>
The logger used to report warnings and errors.
Properties
Section titled “Properties”Pattern
Section titled “ Pattern”Gets the pattern identifier handled by this strategy.
public string Pattern { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”ExecuteAsync(BehaviorExecutionContext, CancellationToken)
Section titled “ ExecuteAsync(BehaviorExecutionContext, CancellationToken)”Loads the current process checkpoint, invokes the behavior slot, and saves the resulting checkpoint.
If the output implements
public Task<BehaviorExecutionResult> ExecuteAsync(BehaviorExecutionContext context, CancellationToken ct = default)Parameters
Section titled “Parameters”context BehaviorExecutionContext
The execution context for this invocation.
A token that cancels the execution.
Returns
Section titled “Returns”A result with HTTP 200 and the behavior output.
Exceptions
Section titled “Exceptions”Thrown when CorrelationId is null.