Table of Contents

Class BindingConfiguration

Namespace
CarrotMQ.Core.Configuration
Assembly
CarrotMQ.Core.dll

Message binding with a specific routing key.

public class BindingConfiguration
Inheritance
BindingConfiguration
Derived
Inherited Members

Constructors

BindingConfiguration(string, string, string)

public BindingConfiguration(string exchange, string queue, string routingKey)

Parameters

exchange string
queue string
routingKey string

Properties

Exchange

Name of the message exchange associated with this binding.

public string Exchange { get; }

Property Value

string

Queue

Name of the message queue associated with this binding.

public string Queue { get; }

Property Value

string

RoutingKey

Routing key

public string RoutingKey { get; protected set; }

Property Value

string

Remarks

This may be null if ResolveRoutingKey(IRoutingKeyResolver) has not been called beforehand

Methods

ResolveRoutingKey(IRoutingKeyResolver)

Can be overriden to set the RoutingKey using the provided routingKeyResolver.

public virtual void ResolveRoutingKey(IRoutingKeyResolver routingKeyResolver)

Parameters

routingKeyResolver IRoutingKeyResolver

Responsible for resolving the routing key.