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
Client
MessageBrokerRemoteClient instance to which this publisher belongs to.
public MessageBrokerRemoteClient Client { get; }
Property Value
IsEphemeral
Specifies whether the publisher is ephemeral.
public bool IsEphemeral { get; }
Property Value
State
Current publisher's state.
public MessageBrokerChannelPublisherBindingState State { get; }
Property Value
Remarks
See MessageBrokerChannelPublisherBindingState for more information.
Stream
MessageBrokerStream instance through which this publisher will push messages to subscribers.
public MessageBrokerStream Stream { get; }
Property Value
Methods
DeleteAsync()
Deletes this publisher from the server.
public ValueTask DeleteAsync()
Returns
- ValueTask
A task that represents the asynchronous delete operation.
Exceptions
- MessageBrokerServerException
- 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.