Constructor MessageRouter
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
dispatcherMessageDispatcherinterceptorsIEnumerable<IMessageRouteInterceptor>