Table of Contents

Class QueueEndPoint

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

Represents an abstract class for queue endpoints.

public abstract class QueueEndPoint : EndPointBase
Inheritance
QueueEndPoint
Inherited Members

Constructors

QueueEndPoint(string)

Initializes a new instance of the QueueEndPoint class with the specified queue name.

protected QueueEndPoint(string queueName)

Parameters

queueName string

The name of the messaging queue acting as endpoint

Exceptions

ArgumentException

Thrown when queueName is empty or whitespace.

Properties

QueueName

Gets the name of the messaging queue

public string QueueName { get; }

Property Value

string

Methods

GetRoutingKey<TMessage>(IRoutingKeyResolver)

Gets the routing key QueueEndPoint -> the QueueName

public override string GetRoutingKey<TMessage>(IRoutingKeyResolver routingKeyResolver)

Parameters

routingKeyResolver IRoutingKeyResolver

The resolver is not used in with this endpoint type

Returns

string

The QueueName

Type Parameters

TMessage

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