Table of Contents

Class MessageBrokerChannelListenerBinding

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

Represents a message broker channel binding for a listener, which allows clients to listen to messages published through channels via queue bindings.

public sealed class MessageBrokerChannelListenerBinding
Inheritance
MessageBrokerChannelListenerBinding
Inherited Members

Properties

Channel

MessageBrokerChannel instance to which the Client is bound to as a listener.

public MessageBrokerChannel Channel { get; }

Property Value

MessageBrokerChannel

Client

MessageBrokerRemoteClient instance to which this listener belongs to.

public MessageBrokerRemoteClient Client { get; }

Property Value

MessageBrokerRemoteClient

IsEphemeral

Specifies whether the listener is ephemeral.

public bool IsEphemeral { get; }

Property Value

bool

QueueBindings

Collection of MessageBrokerQueueListenerBinding instances attached to this channel listener, identified by queue ids.

public MessageBrokerChannelListenerBindingQueueBindingCollection QueueBindings { get; }

Property Value

MessageBrokerChannelListenerBindingQueueBindingCollection

State

Current listener's state.

public MessageBrokerChannelListenerBindingState State { get; }

Property Value

MessageBrokerChannelListenerBindingState

Remarks

See MessageBrokerChannelListenerBindingState for more information.

Methods

DeleteAsync()

Deletes this listener from the server.

public ValueTask DeleteAsync()

Returns

ValueTask

A task that represents the asynchronous delete operation.

Exceptions

MessageBrokerServerException

When server is in Created or Starting state.

MessageBrokerRemoteClientException

When this listener is in Created state.

ToString()

Returns a string representation of this MessageBrokerChannelListenerBinding instance.

[Pure]
public override string ToString()

Returns

string

String representation.