Class MqttClientTcpConfiguration
- Namespace
- Silverback.Messaging.Configuration.Mqtt
- Assembly
- Silverback.Integration.MQTT.dll
The configuration of the TCP connection to the MQTT message broker.
public record MqttClientTcpConfiguration : MqttClientChannelConfiguration, IValidatableSettings, IEquatable<MqttClientChannelConfiguration>, IEquatable<MqttClientTcpConfiguration>
- Inheritance
-
MqttClientTcpConfiguration
- Implements
- Inherited Members
Constructors
MqttClientTcpConfiguration()
public MqttClientTcpConfiguration()
MqttClientTcpConfiguration(MqttClientTcpConfiguration)
protected MqttClientTcpConfiguration(MqttClientTcpConfiguration original)
Parameters
originalMqttClientTcpConfiguration
Properties
AddressFamily
Gets the address family of the underlying Socket.
public AddressFamily AddressFamily { get; init; }
Property Value
BufferSize
Gets the size of both the receive and send buffers of the underlying Socket.
public int BufferSize { get; init; }
Property Value
DualMode
Gets a value that specifies whether the underlying Socket is a dual-mode socket used for both IPv4 and IPv6.
public bool? DualMode { get; init; }
Property Value
- bool?
EqualityContract
protected override Type EqualityContract { get; }
Property Value
LingerState
Gets the LingerOption.
public LingerOption? LingerState { get; init; }
Property Value
LocalEndpoint
Gets the local endpoint (network card) which is used by the client. If null the OS will select the network card.
public EndPoint? LocalEndpoint { get; init; }
Property Value
NoDelay
Gets a value indicating whether the underlying Socket is a dual-mode socket used for both IPv4 and IPv6.
public bool NoDelay { get; init; }
Property Value
ProtocolType
Gets the protocol type, usually TCP but when using other endpoint types like unix sockets it must be changed (IP for unix sockets). The default is Tcp.
public ProtocolType ProtocolType { get; init; }
Property Value
RemoteEndpoint
Gets the remote endpoint (server).
public EndPoint? RemoteEndpoint { get; init; }
Property Value
Methods
Equals(MqttClientChannelConfiguration?)
public override sealed bool Equals(MqttClientChannelConfiguration? other)
Parameters
Returns
Equals(MqttClientTcpConfiguration?)
public virtual bool Equals(MqttClientTcpConfiguration? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Validate()
Throws a SilverbackConfigurationException if the configuration is not valid.
public override void Validate()
Operators
operator ==(MqttClientTcpConfiguration?, MqttClientTcpConfiguration?)
public static bool operator ==(MqttClientTcpConfiguration? left, MqttClientTcpConfiguration? right)
Parameters
Returns
operator !=(MqttClientTcpConfiguration?, MqttClientTcpConfiguration?)
public static bool operator !=(MqttClientTcpConfiguration? left, MqttClientTcpConfiguration? right)