Show / Hide Table of Contents

    Class MqttClientTcpConfiguration

    The configuration of the TCP connection to the MQTT message broker.

    Inheritance
    object
    MqttClientChannelConfiguration
    MqttClientTcpConfiguration
    Implements
    IValidatableSettings
    IEquatable<MqttClientChannelConfiguration>
    IEquatable<MqttClientTcpConfiguration>
    Inherited Members
    MqttClientChannelConfiguration.Tls
    object.GetType()
    object.MemberwiseClone()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: Silverback.Messaging.Configuration.Mqtt
    Assembly: Silverback.Integration.MQTT.dll
    Syntax
    public record MqttClientTcpConfiguration : MqttClientChannelConfiguration, IValidatableSettings, IEquatable<MqttClientChannelConfiguration>, IEquatable<MqttClientTcpConfiguration>

    Constructors

    MqttClientTcpConfiguration()

    The configuration of the TCP connection to the MQTT message broker.

    Declaration
    public MqttClientTcpConfiguration()

    MqttClientTcpConfiguration(MqttClientTcpConfiguration)

    The configuration of the TCP connection to the MQTT message broker.

    Declaration
    protected MqttClientTcpConfiguration(MqttClientTcpConfiguration original)
    Parameters
    Type Name Description
    MqttClientTcpConfiguration original

    Properties

    AddressFamily

    Gets the address family of the underlying Socket.

    Declaration
    public AddressFamily AddressFamily { get; init; }
    Property Value
    Type Description
    AddressFamily

    BufferSize

    Gets the size of both the receive and send buffers of the underlying Socket.

    Declaration
    public int BufferSize { get; init; }
    Property Value
    Type Description
    int

    DualMode

    Gets a value that specifies whether the underlying Socket is a dual-mode socket used for both IPv4 and IPv6.

    Declaration
    public bool? DualMode { get; init; }
    Property Value
    Type Description
    bool?

    EqualityContract

    The configuration of the TCP connection to the MQTT message broker.

    Declaration
    protected override Type EqualityContract { get; }
    Property Value
    Type Description
    Type
    Overrides
    MqttClientChannelConfiguration.EqualityContract

    LingerState

    Gets the LingerOption.

    Declaration
    public LingerOption? LingerState { get; init; }
    Property Value
    Type Description
    LingerOption

    LocalEndpoint

    Gets the local endpoint (network card) which is used by the client. If null the OS will select the network card.

    Declaration
    public EndPoint? LocalEndpoint { get; init; }
    Property Value
    Type Description
    EndPoint

    NoDelay

    Gets a value indicating whether the underlying Socket is a dual-mode socket used for both IPv4 and IPv6.

    Declaration
    public bool NoDelay { get; init; }
    Property Value
    Type Description
    bool

    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.

    Declaration
    public ProtocolType ProtocolType { get; init; }
    Property Value
    Type Description
    ProtocolType

    RemoteEndpoint

    Gets the remote endpoint (server).

    Declaration
    public EndPoint? RemoteEndpoint { get; init; }
    Property Value
    Type Description
    EndPoint

    Methods

    Equals(MqttClientChannelConfiguration?)

    The configuration of the TCP connection to the MQTT message broker.

    Declaration
    public override sealed bool Equals(MqttClientChannelConfiguration? other)
    Parameters
    Type Name Description
    MqttClientChannelConfiguration other
    Returns
    Type Description
    bool
    Overrides
    MqttClientChannelConfiguration.Equals(MqttClientChannelConfiguration?)

    Equals(MqttClientTcpConfiguration?)

    The configuration of the TCP connection to the MQTT message broker.

    Declaration
    public virtual bool Equals(MqttClientTcpConfiguration? other)
    Parameters
    Type Name Description
    MqttClientTcpConfiguration other
    Returns
    Type Description
    bool

    Equals(object?)

    The configuration of the TCP connection to the MQTT message broker.

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    MqttClientChannelConfiguration.Equals(object?)

    GetHashCode()

    The configuration of the TCP connection to the MQTT message broker.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    MqttClientChannelConfiguration.GetHashCode()

    PrintMembers(StringBuilder)

    The configuration of the TCP connection to the MQTT message broker.

    Declaration
    protected override bool PrintMembers(StringBuilder builder)
    Parameters
    Type Name Description
    StringBuilder builder
    Returns
    Type Description
    bool
    Overrides
    MqttClientChannelConfiguration.PrintMembers(StringBuilder)

    ToString()

    The configuration of the TCP connection to the MQTT message broker.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    MqttClientChannelConfiguration.ToString()

    Validate()

    Throws a SilverbackConfigurationException if the configuration is not valid.

    Declaration
    public override void Validate()
    Overrides
    MqttClientChannelConfiguration.Validate()

    Operators

    operator ==(MqttClientTcpConfiguration?, MqttClientTcpConfiguration?)

    The configuration of the TCP connection to the MQTT message broker.

    Declaration
    public static bool operator ==(MqttClientTcpConfiguration? left, MqttClientTcpConfiguration? right)
    Parameters
    Type Name Description
    MqttClientTcpConfiguration left
    MqttClientTcpConfiguration right
    Returns
    Type Description
    bool

    operator !=(MqttClientTcpConfiguration?, MqttClientTcpConfiguration?)

    The configuration of the TCP connection to the MQTT message broker.

    Declaration
    public static bool operator !=(MqttClientTcpConfiguration? left, MqttClientTcpConfiguration? right)
    Parameters
    Type Name Description
    MqttClientTcpConfiguration left
    MqttClientTcpConfiguration right
    Returns
    Type Description
    bool

    Implements

    IValidatableSettings
    IEquatable<T>
    IEquatable<T>
    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini