Namespace PatternKit.Behavioral.Strategy
Classes
- ActionStrategy<TIn>
Represents a "first-match-wins" strategy pipeline built from predicate/action pairs, where actions perform side effects and do not return a value.
- ActionStrategy<TIn>.Builder
Provides a fluent API for constructing an ActionStrategy<TIn>.
- AsyncStrategy<TIn, TOut>
Composable, asynchronous strategy that selects the first matching branch (predicate + handler) and executes its handler.
- AsyncStrategy<TIn, TOut>.Builder
Fluent builder for composing AsyncStrategy<TIn, TOut> branches.
- AsyncStrategy<TIn, TOut>.Builder.WhenBuilder
Intermediate builder returned by When(Predicate) allowing a corresponding handler to be set.
- Strategy<TIn, TOut>
Represents a "first-match-wins" strategy pipeline built from predicate/handler pairs.
- Strategy<TIn, TOut>.Builder
Provides a fluent API for constructing a Strategy<TIn, TOut>.
- TryStrategy<TIn, TOut>
Represents a chain of TryStrategy<TIn, TOut>.TryHandler delegates that are executed in order until one succeeds (returns true).
- TryStrategy<TIn, TOut>.Builder
Provides a fluent API to construct a TryStrategy<TIn, TOut>.
Structs
Delegates
- ActionStrategy<TIn>.ActionHandler
Delegate representing an action that runs when its corresponding predicate matches.
- ActionStrategy<TIn>.Predicate
Delegate representing a predicate used to test the input value.
- AsyncStrategy<TIn, TOut>.Handler
Asynchronous handler delegate that produces the result for a matching branch.
- AsyncStrategy<TIn, TOut>.Predicate
Asynchronous predicate delegate that decides whether a branch can handle the input.
- Strategy<TIn, TOut>.Handler
Delegate representing a handler that produces an output value when its corresponding predicate matches.
- Strategy<TIn, TOut>.Predicate
Delegate representing a predicate used to test the input value.
- TryStrategy<TIn, TOut>.TryHandler
Delegate type representing a handler that attempts to produce a result.