Table of Contents

Class EndPointBase

Namespace
CarrotMQ.Core.EndPoints
Assembly
CarrotMQ.Core.dll

Represents the base class for messaging endpoints.

public abstract class EndPointBase
Inheritance
EndPointBase
Derived
Inherited Members

Constructors

EndPointBase(string)

Initializes a new instance of the EndPointBase class with the specified exchange.

protected EndPointBase(string exchangeName)

Parameters

exchangeName string

Exchange associated with the endpoint.

Properties

Exchange

Exchange associated with the endpoint.

public string Exchange { get; }

Property Value

string

Methods

GetRoutingKey<TMessage>(IRoutingKeyResolver)

Gets the routing key for a specified message using the provided IRoutingKeyResolver.

public abstract string GetRoutingKey<TMessage>(IRoutingKeyResolver routingKeyResolver)

Parameters

routingKeyResolver IRoutingKeyResolver

The resolver used to determine the routing key.

Returns

string

The routing key for the specified message.

Type Parameters

TMessage

The type of the message for which the routing key is generated.