Table of Contents

Class MqttConsumerEndpointConfiguration

Namespace
Silverback.Messaging.Configuration.Mqtt
Assembly
Silverback.Integration.MQTT.dll

The MQTT consumer configuration.

public sealed record MqttConsumerEndpointConfiguration : ConsumerEndpointConfiguration, IEquatable<EndpointConfiguration>, IEquatable<ConsumerEndpointConfiguration>, IEquatable<MqttConsumerEndpointConfiguration>
Inheritance
MqttConsumerEndpointConfiguration
Implements
Inherited Members

Constructors

MqttConsumerEndpointConfiguration()

public MqttConsumerEndpointConfiguration()

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

QualityOfServiceLevel

Gets the quality of service level (at most once, at least once, or exactly once). The default is MQTTnet.Protocol.MqttQualityOfServiceLevel.AtMostOnce.

public MqttQualityOfServiceLevel QualityOfServiceLevel { get; init; }

Property Value

MqttQualityOfServiceLevel

Topics

Gets the name of the topics or the topic filter strings.

public IValueReadOnlyCollection<string> Topics { get; init; }

Property Value

IValueReadOnlyCollection<string>

Methods

Equals(ConsumerEndpointConfiguration?)

public override sealed bool Equals(ConsumerEndpointConfiguration? other)

Parameters

other ConsumerEndpointConfiguration

Returns

bool

Equals(MqttConsumerEndpointConfiguration?)

public bool Equals(MqttConsumerEndpointConfiguration? other)

Parameters

other MqttConsumerEndpointConfiguration

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

ValidateCore()

Validates the endpoint configuration and throws an BrokerConfigurationException if not valid.

protected override void ValidateCore()

Operators

operator ==(MqttConsumerEndpointConfiguration?, MqttConsumerEndpointConfiguration?)

public static bool operator ==(MqttConsumerEndpointConfiguration? left, MqttConsumerEndpointConfiguration? right)

Parameters

left MqttConsumerEndpointConfiguration
right MqttConsumerEndpointConfiguration

Returns

bool

operator !=(MqttConsumerEndpointConfiguration?, MqttConsumerEndpointConfiguration?)

public static bool operator !=(MqttConsumerEndpointConfiguration? left, MqttConsumerEndpointConfiguration? right)

Parameters

left MqttConsumerEndpointConfiguration
right MqttConsumerEndpointConfiguration

Returns

bool