Table of Contents

Class ActionDecorator<TIn>.Builder

Namespace
PatternKit.Structural.Decorator
Assembly
PatternKit.Core.dll

Fluent builder for ActionDecorator<TIn>.

public sealed class ActionDecorator<TIn>.Builder
Inheritance
ActionDecorator<TIn>.Builder
Inherited Members

Methods

After(AfterAction)

Adds a decorator that executes logic after the next layer completes.

public ActionDecorator<TIn>.Builder After(ActionDecorator<TIn>.AfterAction action)

Parameters

action ActionDecorator<TIn>.AfterAction

Returns

ActionDecorator<TIn>.Builder

Around(AroundTransform)

Adds a decorator that wraps the entire execution with custom logic.

public ActionDecorator<TIn>.Builder Around(ActionDecorator<TIn>.AroundTransform transform)

Parameters

transform ActionDecorator<TIn>.AroundTransform

Returns

ActionDecorator<TIn>.Builder

Before(BeforeTransform)

Adds a decorator that transforms the input before it reaches the next layer.

public ActionDecorator<TIn>.Builder Before(ActionDecorator<TIn>.BeforeTransform transform)

Parameters

transform ActionDecorator<TIn>.BeforeTransform

Returns

ActionDecorator<TIn>.Builder

Build()

Builds an immutable decorator with the registered decorators.

public ActionDecorator<TIn> Build()

Returns

ActionDecorator<TIn>