Table of Contents

Struct MessageBrokerChannelListenerBindingQueueBindingCollection

Namespace
LfrlAnvil.MessageBroker.Server
Assembly
LfrlAnvil.MessageBroker.Server.dll

Represents a collection of MessageBrokerQueueListenerBinding instances attached to a single channel listener binding, identified by queue ids.

public readonly struct MessageBrokerChannelListenerBindingQueueBindingCollection
Inherited Members

Properties

Count

Specifies the number of queue bindings.

public int Count { get; }

Property Value

int

Primary

Specifies the primary queue binding.

public MessageBrokerQueueListenerBinding Primary { get; }

Property Value

MessageBrokerQueueListenerBinding

Methods

GetAll()

Returns all queue bindings.

[Pure]
public ReadOnlyArray<MessageBrokerQueueListenerBinding> GetAll()

Returns

ReadOnlyArray<MessageBrokerQueueListenerBinding>

All queue bindings.

TryGetByQueueId(int)

Attempts to return a queue binding by related queue id.

[Pure]
public MessageBrokerQueueListenerBinding? TryGetByQueueId(int queueId)

Parameters

queueId int

Queue's unique Id.

Returns

MessageBrokerQueueListenerBinding

MessageBrokerQueueListenerBinding instance associated with the channel listener and the provided queueId or null, when such a queue binding does not exist.