Class MqttLastWillMessageConfiguration
The configuration of the last will message to be sent when the client disconnects ungracefully.
Inheritance
MqttLastWillMessageConfiguration
Assembly: Silverback.Integration.MQTT.dll
Syntax
public record MqttLastWillMessageConfiguration : IValidatableSettings, IEquatable<MqttLastWillMessageConfiguration>
Constructors
MqttLastWillMessageConfiguration()
The configuration of the last will message to be sent when the client disconnects ungracefully.
Declaration
public MqttLastWillMessageConfiguration()
MqttLastWillMessageConfiguration(MqttLastWillMessageConfiguration)
The configuration of the last will message to be sent when the client disconnects ungracefully.
Declaration
protected MqttLastWillMessageConfiguration(MqttLastWillMessageConfiguration original)
Parameters
Properties
ContentType
Declaration
public string? ContentType { get; init; }
Property Value
CorrelationData
Gets the correlation data.
Declaration
public byte[]? CorrelationData { get; init; }
Property Value
Delay
Gets the number of seconds to wait before sending the last will message. If the client reconnects between this interval the message
will not be sent.
Declaration
public uint Delay { get; init; }
Property Value
EqualityContract
The configuration of the last will message to be sent when the client disconnects ungracefully.
Declaration
protected virtual Type EqualityContract { get; }
Property Value
Expiration
Gets the message expiry interval.
Declaration
public uint Expiration { get; init; }
Property Value
Payload
Gets the message payload.
Declaration
public byte[]? Payload { get; init; }
Property Value
Gets the payload format indicator.
Declaration
public MqttPayloadFormatIndicator PayloadFormatIndicator { get; init; }
Property Value
| Type |
Description |
| MqttPayloadFormatIndicator |
|
QualityOfServiceLevel
Gets the quality of service level (at most once, at least once or exactly once).
The default is MQTTnet.Protocol.MqttQualityOfServiceLevel.AtMostOnce.
Declaration
public MqttQualityOfServiceLevel QualityOfServiceLevel { get; init; }
Property Value
| Type |
Description |
| MqttQualityOfServiceLevel |
|
ResponseTopic
Declaration
public string? ResponseTopic { get; init; }
Property Value
Retain
Gets a value indicating whether the message have to be sent with the retain flag, causing them to be persisted on the broker.
The default is false.
Declaration
public bool Retain { get; init; }
Property Value
Topic
Declaration
public string Topic { get; init; }
Property Value
UserProperties
Gets the user properties of the will message.
Declaration
public IValueReadOnlyCollection<MqttUserProperty> UserProperties { get; init; }
Property Value
Methods
Equals(MqttLastWillMessageConfiguration?)
The configuration of the last will message to be sent when the client disconnects ungracefully.
Declaration
public virtual bool Equals(MqttLastWillMessageConfiguration? other)
Parameters
Returns
Equals(object?)
The configuration of the last will message to be sent when the client disconnects ungracefully.
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
GetHashCode()
The configuration of the last will message to be sent when the client disconnects ungracefully.
Declaration
public override int GetHashCode()
Returns
Overrides
PrintMembers(StringBuilder)
The configuration of the last will message to be sent when the client disconnects ungracefully.
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
ToString()
The configuration of the last will message to be sent when the client disconnects ungracefully.
Declaration
public override string ToString()
Returns
Overrides
Validate()
Declaration
Operators
operator ==(MqttLastWillMessageConfiguration?, MqttLastWillMessageConfiguration?)
The configuration of the last will message to be sent when the client disconnects ungracefully.
Declaration
public static bool operator ==(MqttLastWillMessageConfiguration? left, MqttLastWillMessageConfiguration? right)
Parameters
Returns
operator !=(MqttLastWillMessageConfiguration?, MqttLastWillMessageConfiguration?)
The configuration of the last will message to be sent when the client disconnects ungracefully.
Declaration
public static bool operator !=(MqttLastWillMessageConfiguration? left, MqttLastWillMessageConfiguration? right)
Parameters
Returns
Implements