Interface IBehaviorExecutionStrategy
Namespace: Cephalon.Behaviors.Patterns.Abstractions
Assembly: Cephalon.Behaviors.Patterns.dll
Executes a behavior invocation according to a specific architectural pattern.
public interface IBehaviorExecutionStrategyProperties
Section titled “Properties”Pattern
Section titled “ Pattern”Gets the pattern identifier this strategy handles (e.g. “cqrs”, “event-driven”).
string Pattern { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”ExecuteAsync(BehaviorExecutionContext, CancellationToken)
Section titled “ ExecuteAsync(BehaviorExecutionContext, CancellationToken)”Executes the behavior using pattern-specific semantics.
Task<BehaviorExecutionResult> ExecuteAsync(BehaviorExecutionContext context, CancellationToken ct = default)Parameters
Section titled “Parameters”context BehaviorExecutionContext
The execution context carrying all information needed for this invocation.
A token that cancels the execution.
Returns
Section titled “Returns”A task that resolves to the execution result.