Interface ISagaEventReactor
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Behaviors.Patterns.Abstractions
Assembly: Cephalon.Behaviors.Patterns.dll
Provides a higher-level authoring helper for choreography-based saga steps that react to one event and return staged publications plus optional local output through the shared choreography contracts.
public interface ISagaEventReactor<TEvent> : IAppBehavior<TEvent, SagaChoreographyStepResult>Type Parameters
Section titled “Type Parameters”TEvent
The input event type handled by the reactor.
Implements
Section titled “Implements”IAppBehavior<TEvent, SagaChoreographyStepResult>
Methods
Section titled “Methods”ReactAsync(TEvent, IBehaviorContext, CancellationToken)
Section titled “ ReactAsync(TEvent, IBehaviorContext, CancellationToken)”Reacts to one event and returns the choreography publications plus optional local output.
Task<SagaChoreographyStepResult> ReactAsync(TEvent input, IBehaviorContext context, CancellationToken ct = default)Parameters
Section titled “Parameters”input TEvent
The input event for this choreography step.
context IBehaviorContext
The ambient behavior context.
A token that cancels the reaction.
Returns
Section titled “Returns”Task<SagaChoreographyStepResult>
The publications and optional local output produced by the choreography step.