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
Properties
Exchange
Name of the message exchange associated with this binding.
public string Exchange { get; }
Property Value
Queue
Name of the message queue associated with this binding.
public string Queue { get; }
Property Value
RoutingKey
Routing key
public string RoutingKey { get; protected set; }
Property Value
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
routingKeyResolverIRoutingKeyResolverResponsible for resolving the routing key.