ข้ามไปยังเนื้อหา

Interface IBehaviorExecutionStrategy

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Behaviors.Patterns.Abstractions
Assembly: Cephalon.Behaviors.Patterns.dll

Executes a behavior invocation according to a specific architectural pattern.

public interface IBehaviorExecutionStrategy

Gets the pattern identifier this strategy handles (e.g. “cqrs”, “event-driven”).

string Pattern { get; }

string

ExecuteAsync(BehaviorExecutionContext, CancellationToken)

Section titled “ ExecuteAsync(BehaviorExecutionContext, CancellationToken)”

Executes the behavior using pattern-specific semantics.

Task<BehaviorExecutionResult> ExecuteAsync(BehaviorExecutionContext context, CancellationToken ct = default)

context BehaviorExecutionContext

The execution context carrying all information needed for this invocation.

ct CancellationToken

A token that cancels the execution.

Task<BehaviorExecutionResult>

A task that resolves to the execution result.