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
Client
MessageBrokerRemoteClient instance to which this listener belongs to.
public MessageBrokerRemoteClient Client { get; }
Property Value
IsEphemeral
Specifies whether the listener is ephemeral.
public bool IsEphemeral { get; }
Property Value
QueueBindings
Collection of MessageBrokerQueueListenerBinding instances attached to this channel listener, identified by queue ids.
public MessageBrokerChannelListenerBindingQueueBindingCollection QueueBindings { get; }
Property Value
State
Current listener's state.
public MessageBrokerChannelListenerBindingState State { get; }
Property Value
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
- 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.