Class MqttClientWebSocketConfiguration
- Namespace
- Silverback.Messaging.Configuration.Mqtt
- Assembly
- Silverback.Integration.MQTT.dll
The configuration of the websocket connection to the MQTT message broker.
public record MqttClientWebSocketConfiguration : MqttClientChannelConfiguration, IValidatableSettings, IEquatable<MqttClientChannelConfiguration>, IEquatable<MqttClientWebSocketConfiguration>
- Inheritance
-
MqttClientWebSocketConfiguration
- Implements
- Inherited Members
Constructors
MqttClientWebSocketConfiguration()
public MqttClientWebSocketConfiguration()
MqttClientWebSocketConfiguration(MqttClientWebSocketConfiguration)
protected MqttClientWebSocketConfiguration(MqttClientWebSocketConfiguration original)
Parameters
originalMqttClientWebSocketConfiguration
Properties
CookieContainer
Gets the cookies associated with the request.
public CookieContainer? CookieContainer { get; init; }
Property Value
Credentials
Gets the credentials to be used.
public ICredentials? Credentials { get; init; }
Property Value
DangerousDeflateOptions
Gets the WebSocketDeflateOptions.
public WebSocketDeflateOptions? DangerousDeflateOptions { get; init; }
Property Value
EqualityContract
protected override Type EqualityContract { get; }
Property Value
KeepAliveInterval
Gets the keep alive interval for the web socket connection. This is not related to the keep alive interval for the MQTT protocol. The default is DefaultKeepAliveInterval.
public TimeSpan KeepAliveInterval { get; init; }
Property Value
Proxy
Gets the proxy configuration.
public MqttClientWebSocketProxyConfiguration? Proxy { get; init; }
Property Value
RequestHeaders
Gets the request headers.
public IDictionary<string, string>? RequestHeaders { get; init; }
Property Value
SubProtocols
Gets the sub-protocols to be negotiated during the WebSocket connection handshake.
public ICollection<string>? SubProtocols { get; init; }
Property Value
Uri
Gets the server URI.
public string? Uri { get; init; }
Property Value
UseDefaultCredentials
Gets a value indicating whether the default (system) credentials should be used. The default is false.
public bool UseDefaultCredentials { get; init; }
Property Value
Methods
Equals(MqttClientChannelConfiguration?)
public override sealed bool Equals(MqttClientChannelConfiguration? other)
Parameters
Returns
Equals(MqttClientWebSocketConfiguration?)
public virtual bool Equals(MqttClientWebSocketConfiguration? 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 ==(MqttClientWebSocketConfiguration?, MqttClientWebSocketConfiguration?)
public static bool operator ==(MqttClientWebSocketConfiguration? left, MqttClientWebSocketConfiguration? right)
Parameters
Returns
operator !=(MqttClientWebSocketConfiguration?, MqttClientWebSocketConfiguration?)
public static bool operator !=(MqttClientWebSocketConfiguration? left, MqttClientWebSocketConfiguration? right)