Show / Hide Table of Contents

Interface IDestinationProvider

Provides methods for creating temporary destinations and resolving named destinations (queues and topics) in a messaging system.

Namespace: CodersRealm.AmqpClient
Assembly: CodersRealm.AmqpClient.dll
Syntax
public interface IDestinationProvider

Methods

CreateTemporaryQueueAsync()

Create a temporary queue bound to the underlying connection/session.

Declaration
Task<ITemporaryQueue?> CreateTemporaryQueueAsync()
Returns
Type Description
Task<ITemporaryQueue>

The created ITemporaryQueue or null if creation failed.

CreateTemporaryTopicAsync()

Create a temporary topic bound to the underlying connection/session.

Declaration
Task<ITemporaryTopic?> CreateTemporaryTopicAsync()
Returns
Type Description
Task<ITemporaryTopic>

The created ITemporaryTopic or null if creation failed.

GetQueueAsync(string)

Resolve a named queue on the broker and return an IQueue reference.

Declaration
Task<IQueue?> GetQueueAsync(string queueName)
Parameters
Type Name Description
string queueName

The name of the queue to resolve.

Returns
Type Description
Task<IQueue>

The resolved IQueue or null if not found.

Exceptions
Type Condition
ArgumentException

Thrown when queueName is null or empty.

GetTopicAsync(string)

Resolve a named topic on the broker and return an ITopic reference.

Declaration
Task<ITopic?> GetTopicAsync(string topicName)
Parameters
Type Name Description
string topicName

The name of the topic to resolve.

Returns
Type Description
Task<ITopic>

The resolved ITopic or null if not found.

Exceptions
Type Condition
ArgumentException

Thrown when topicName is null or empty.

In this article
Back to top Generated by DocFX