Namespace PatternKit.Structural.Decorator
Classes
- Decorator<TIn, TOut>
Fluent, allocation-light decorator that wraps a component and applies layered enhancements via ordered decorators. Build once, then call Execute(in TIn) to run the component through the decorator pipeline.
- Decorator<TIn, TOut>.Builder
Fluent builder for Decorator<TIn, TOut>.
Delegates
- Decorator<TIn, TOut>.AfterTransform
Delegate for transforming the output after it returns from the next layer.
- Decorator<TIn, TOut>.AroundTransform
Delegate for wrapping the entire execution with custom logic (e.g., logging, error handling).
- Decorator<TIn, TOut>.BeforeTransform
Delegate for transforming the input before it reaches the next layer.
- Decorator<TIn, TOut>.Component
Delegate representing the base component operation that transforms input to output.