Table of Contents

Class AsyncStrategy<TIn, TOut>.Builder.WhenBuilder

Namespace
PatternKit.Behavioral.Strategy
Assembly
PatternKit.Core.dll

Intermediate builder returned by When(Predicate) allowing a corresponding handler to be set.

public sealed class AsyncStrategy<TIn, TOut>.Builder.WhenBuilder
Inheritance
AsyncStrategy<TIn, TOut>.Builder.WhenBuilder
Inherited Members
Extension Methods

Methods

Then(Handler)

Assigns the handler to execute when the associated predicate evaluates to true.

public AsyncStrategy<TIn, TOut>.Builder Then(AsyncStrategy<TIn, TOut>.Handler handler)

Parameters

handler AsyncStrategy<TIn, TOut>.Handler

The asynchronous handler for this branch.

Returns

AsyncStrategy<TIn, TOut>.Builder

The parent AsyncStrategy<TIn, TOut>.Builder for further configuration.

Exceptions

ArgumentNullException

Thrown when handler is null.