Table of Contents

Class ContentRouter<TPayload, TResult>.Builder

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

Methods

Build()

Builds an immutable router.

public ContentRouter<TPayload, TResult> Build()

Returns

ContentRouter<TPayload, TResult>

Default(RouteHandler)

Sets the default route handler.

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

Parameters

handler ContentRouter<TPayload, TResult>.RouteHandler

Returns

ContentRouter<TPayload, TResult>.Builder

When(RoutePredicate)

Adds a route predicate.

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

Parameters

predicate ContentRouter<TPayload, TResult>.RoutePredicate

Returns

ContentRouter<TPayload, TResult>.Builder.WhenBuilder