Table of Contents

Class MessageBrokerChannel

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

Represents a message broker channel, which allows clients to bind to it as either a publisher or a listener.

public sealed class MessageBrokerChannel
Inheritance
MessageBrokerChannel
Inherited Members

Properties

Id

Channel's unique identifier assigned by the server.

public int Id { get; }

Property Value

int

Listeners

Collection of MessageBrokerChannelListenerBinding instances attached to this channel, identified by client ids.

public MessageBrokerChannelListenerBindingCollection Listeners { get; }

Property Value

MessageBrokerChannelListenerBindingCollection

Name

Channel's unique name.

public string Name { get; }

Property Value

string

Publishers

Collection of MessageBrokerChannelPublisherBinding instances attached to this channel, identified by client ids.

public MessageBrokerChannelPublisherBindingCollection Publishers { get; }

Property Value

MessageBrokerChannelPublisherBindingCollection

Server

MessageBrokerServer instance that owns this channel.

public MessageBrokerServer Server { get; }

Property Value

MessageBrokerServer

State

Current channel's state.

public MessageBrokerChannelState State { get; }

Property Value

MessageBrokerChannelState

Remarks

See MessageBrokerChannelState for more information.

Methods

ToString()

Returns a string representation of this MessageBrokerChannel instance.

[Pure]
public override string ToString()

Returns

string

String representation.