Table of Contents

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

TMessage

The type of the message associated with the binding.

TResponse

The 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

exchange string
queue string

Returns

Handler<TMessage, TResponse>