![]()  | 
  
    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. 
   | 
 
| RouteHandlerDelegate Cqrs.Bus.RouteManager.GetSingleHandler< TMessage > | ( | TMessage | message, | 
| bool | throwExceptionOnNoRouteHandlers = true  | 
        ||
| ) | 
Gets the single RouteHandlerDelegate 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. | 
| MultipleCommandHandlersRegisteredException | If more than one RouteHandlerDelegate is found and TMessage is an ICommand<TAuthenticationToken>. | 
| NoCommandHandlerRegisteredException | If no RouteHandlerDelegate is found and TMessage is an ICommand<TAuthenticationToken> and throwExceptionOnNoRouteHandlers is true. | 
| InvalidOperationException | If more than one RouteHandlerDelegate is found and TMessage is not an ICommand<TAuthenticationToken> OR If no RouteHandlerDelegate is found and TMessage is not an ICommand<TAuthenticationToken> and throwExceptionOnNoRouteHandlers is true. | 
| TMessage | : | IMessage |