Table of Contents

Class AsyncContentRouter<TPayload, TResult>.Builder

Namespace
PatternKit.Messaging.Routing
Assembly
PatternKit.Core.dll
public sealed class AsyncContentRouter<TPayload, TResult>.Builder
Inheritance
AsyncContentRouter<TPayload, TResult>.Builder
Inherited Members

Methods

Build()

Builds an immutable router.

public AsyncContentRouter<TPayload, TResult> Build()

Returns

AsyncContentRouter<TPayload, TResult>

Default(RouteHandler)

Sets the default async route handler.

public AsyncContentRouter<TPayload, TResult>.Builder Default(AsyncContentRouter<TPayload, TResult>.RouteHandler handler)

Parameters

handler AsyncContentRouter<TPayload, TResult>.RouteHandler

Returns

AsyncContentRouter<TPayload, TResult>.Builder

When(RoutePredicate)

Adds an async route predicate.

public AsyncContentRouter<TPayload, TResult>.Builder.WhenBuilder When(AsyncContentRouter<TPayload, TResult>.RoutePredicate predicate)

Parameters

predicate AsyncContentRouter<TPayload, TResult>.RoutePredicate

Returns

AsyncContentRouter<TPayload, TResult>.Builder.WhenBuilder