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>.
- AsyncActionStrategy<TIn>
Composable, asynchronous action strategy that selects the first matching branch (predicate + handler) and executes its handler for side effects.
- AsyncActionStrategy<TIn>.Builder
Fluent builder for composing AsyncActionStrategy<TIn> branches.
- AsyncActionStrategy<TIn>.Builder.WhenBuilder
Intermediate builder returned by When(Predicate) allowing a corresponding handler to be set.
- 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.
- AsyncActionStrategy<TIn>.Handler
Asynchronous handler delegate that performs side effects for a matching branch.
- AsyncActionStrategy<TIn>.Predicate
Asynchronous predicate delegate that decides whether a branch can handle the input.
- 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.