Class Handler<TMessage, TResponse>
- Namespace
- CarrotMQ.Core.Configuration
- Assembly
- CarrotMQ.Core.dll
Generic representation of a Handler for configuring the bindings between exchanges and queues.
where the message type is specified by TMessage and the response type by
TResponse.
public sealed class Handler<TMessage, TResponse> where TMessage : _IMessage<TMessage, TResponse> where TResponse : class
Type Parameters
TMessageThe type of the message associated with the binding.
TResponseThe type of the response associated with the binding.
- Inheritance
-
Handler<TMessage, TResponse>
- Inherited Members
Methods
BindTo(string, string)
Bind the given exchange to the given queue using the TMessage as routing key
public Handler<TMessage, TResponse> BindTo(string exchange, string queue)
Parameters
Returns
- Handler<TMessage, TResponse>