Class ExchangeEndPoint
Represents an abstract class for exchange endpoints.
public abstract class ExchangeEndPoint : EndPointBase
- Inheritance
-
ExchangeEndPoint
- Inherited Members
Constructors
ExchangeEndPoint(string)
Initializes a new instance of the ExchangeEndPoint class with the specified exchange name.
protected ExchangeEndPoint(string exchangeName)
Parameters
exchangeNamestringThe name of the messaging exchange acting as endpoint.
Exceptions
- ArgumentException
Thrown when
exchangeNameis empty or whitespace.
Methods
GetRoutingKey<TMessage>(IRoutingKeyResolver)
Gets the routing key for a specified message using the provided IRoutingKeyResolver.
public override string GetRoutingKey<TMessage>(IRoutingKeyResolver routingKeyResolver)
Parameters
routingKeyResolverIRoutingKeyResolverThe resolver used to determine the routing key.
Returns
- string
The routing key for the specified message.
Type Parameters
TMessageThe type of the message for which the routing key is generated.