Class AsyncContentRouter<TPayload, TResult>.Builder
- Namespace
- PatternKit.Messaging.Routing
- Assembly
- PatternKit.Core.dll
Fluent builder for AsyncContentRouter<TPayload, TResult>.
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
handlerAsyncContentRouter<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
predicateAsyncContentRouter<TPayload, TResult>.RoutePredicate
Returns
- AsyncContentRouter<TPayload, TResult>.Builder.WhenBuilder