Table of Contents

Constructor MessageRouter

Namespace
Ratatoskr.Core
Assembly
Ratatoskr.dll

MessageRouter(MessageDispatcher, IEnumerable<IMessageRouteInterceptor>)

Routes incoming messages through registered IMessageRouteInterceptor instances (e.g. inbox acceptance per DbContext) and then to the MessageDispatcher for handler invocation.

Transport consumers call RouteAsync(byte[], MessageProperties, string, CancellationToken, string) instead of interacting with interceptors and MessageDispatcher separately.

public MessageRouter(MessageDispatcher dispatcher, IEnumerable<IMessageRouteInterceptor> interceptors)

Parameters

dispatcher MessageDispatcher
interceptors IEnumerable<IMessageRouteInterceptor>