Struct MqttPublishOptions
How one message is published.
public readonly record struct MqttPublishOptions : IEquatable<MqttPublishOptions>
- Implements
- Inherited Members
Constructors
MqttPublishOptions(Qos?, bool)
How one message is published.
public MqttPublishOptions(Qos? Qos = null, bool Retain = false)
Parameters
QosQos?The quality of service for this message, or null for the client's.
RetainboolWhether the broker keeps it for clients that subscribe later. An empty retained message clears the one the broker holds.
Properties
Qos
The quality of service for this message, or null for the client's.
public Qos? Qos { get; init; }
Property Value
- Qos?
Retain
Whether the broker keeps it for clients that subscribe later. An empty retained message clears the one the broker holds.
public bool Retain { get; init; }