Table of Contents

Class MessageBrokerChannelPublisherBinding

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

Represents a message broker channel binding for a publisher, which allows clients to publish messages through channels.

public sealed class MessageBrokerChannelPublisherBinding : IMessageBrokerMessagePublisher
Inheritance
MessageBrokerChannelPublisherBinding
Implements
Inherited Members

Properties

Channel

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

public MessageBrokerChannel Channel { get; }

Property Value

MessageBrokerChannel

Client

MessageBrokerRemoteClient instance to which this publisher belongs to.

public MessageBrokerRemoteClient Client { get; }

Property Value

MessageBrokerRemoteClient

IsEphemeral

Specifies whether the publisher is ephemeral.

public bool IsEphemeral { get; }

Property Value

bool

State

Current publisher's state.

public MessageBrokerChannelPublisherBindingState State { get; }

Property Value

MessageBrokerChannelPublisherBindingState

Remarks

Stream

MessageBrokerStream instance through which this publisher will push messages to subscribers.

public MessageBrokerStream Stream { get; }

Property Value

MessageBrokerStream

Methods

DeleteAsync()

Deletes this publisher 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 publisher is in Created state.

ToString()

Returns a string representation of this MessageBrokerChannelPublisherBinding instance.

[Pure]
public override string ToString()

Returns

string

String representation.