![]() |
CQRS.NET
4.0
A lightweight enterprise Function as a Service (FaaS) framework to write function based serverless and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.
|
| IEnumerable<RouteHandlerDelegate> Cqrs.Bus.RouteManager.GetHandlers< TMessage > | ( | TMessage | message, |
| bool | throwExceptionOnNoRouteHandlers = true |
||
| ) |
Gets the collection RouteHandlerDelegate that are expected for handling TMessage .
| TMessage | The Type of IMessage to find a RouteHandlerDelegate for. |
| message | The TMessage to find a RouteHandlerDelegate for. |
| throwExceptionOnNoRouteHandlers | If true will throw an Exception if no RouteHandlerDelegate found. |
| NoCommandHandlerRegisteredException | If no RouteHandlerDelegate is found and TMessage is an ICommand<TAuthenticationToken> and throwExceptionOnNoRouteHandlers is true. |
| NoEventHandlerRegisteredException | If no RouteHandlerDelegate is found and TMessage is an IEvent<TAuthenticationToken> and throwExceptionOnNoRouteHandlers is true. |
| NoHandlerRegisteredException | If no RouteHandlerDelegate is found and TMessage is not either an ICommand<TAuthenticationToken> or an IEvent<TAuthenticationToken> and throwExceptionOnNoRouteHandlers is true. |
| TMessage | : | IMessage |