Table of Contents

Interface IRoutingKeyResolver

Namespace
CarrotMQ.Core.MessageProcessing
Assembly
CarrotMQ.Core.dll

Interface that generates routing key for given message type and/or exchange name.

public interface IRoutingKeyResolver

Methods

GetRoutingKey<TRequest>(string)

Gets the routing key based on the request type and/or the exchange name.

string GetRoutingKey<TRequest>(string exchangeName)

Parameters

exchangeName string

The name of the messaging exchange associated with the routing key.

Returns

string

The routing key.

Type Parameters

TRequest

The type of the request for which to generate the routing key.