Interface IDurableExecution
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Behaviors.Patterns.Abstractions
Assembly: Cephalon.Behaviors.Patterns.dll
Describes the replayable state contract for one durable execution workflow.
public interface IDurableExecution<TState> : IAggregate<TState>Type Parameters
Section titled “Type Parameters”TState
The workflow state shape.
Implements
Section titled “Implements”IAggregate<TState>
Methods
Section titled “Methods”CreateInitialState()
Section titled “ CreateInitialState()”Creates the initial workflow state used before any events exist for the execution stream.
TState CreateInitialState()Returns
Section titled “Returns”TState
The initial workflow state.
ResolveStreamId(string, IBehaviorContext)
Section titled “ ResolveStreamId(string, IBehaviorContext)”Resolves the event-store stream identifier that owns this workflow execution.
string ResolveStreamId(string behaviorId, IBehaviorContext context)Parameters
Section titled “Parameters”behaviorId string
The stable behavior identifier.
context IBehaviorContext
The ambient behavior context for the current invocation.
Returns
Section titled “Returns”The stable stream identifier used for replay and append operations.