Class MqttUserProperty
- Namespace
- Silverback.Messaging.Configuration.Mqtt
- Assembly
- Silverback.Integration.MQTT.dll
A user property to be sent with the CONNECT packet. It can be used to send connection related properties from the client to the server.
public record MqttUserProperty : IValidatableSettings, IEquatable<MqttUserProperty>
- Inheritance
-
MqttUserProperty
- Implements
- Inherited Members
Constructors
MqttUserProperty(MqttUserProperty)
protected MqttUserProperty(MqttUserProperty original)
Parameters
originalMqttUserProperty
MqttUserProperty(string, string?)
A user property to be sent with the CONNECT packet. It can be used to send connection related properties from the client to the server.
public MqttUserProperty(string Name, string? Value)
Parameters
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Name
Gets the property name.
public string Name { get; }
Property Value
Value
Gets the property value.
public string? Value { get; }
Property Value
Methods
Deconstruct(out string, out string?)
public void Deconstruct(out string Name, out string? Value)
Parameters
Equals(MqttUserProperty?)
public virtual bool Equals(MqttUserProperty? other)
Parameters
otherMqttUserProperty
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Validate()
Throws a SilverbackConfigurationException if the configuration is not valid.
public void Validate()
Operators
operator ==(MqttUserProperty?, MqttUserProperty?)
public static bool operator ==(MqttUserProperty? left, MqttUserProperty? right)
Parameters
leftMqttUserPropertyrightMqttUserProperty
Returns
operator !=(MqttUserProperty?, MqttUserProperty?)
public static bool operator !=(MqttUserProperty? left, MqttUserProperty? right)
Parameters
leftMqttUserPropertyrightMqttUserProperty