Class MqttConsumerEndpoint
- Namespace
- Silverback.Messaging.Configuration.Mqtt
- Assembly
- Silverback.Integration.MQTT.dll
The MQTT topic from which the message was consumed.
public record MqttConsumerEndpoint : ConsumerEndpoint<MqttConsumerEndpointConfiguration>, IEquatable<Endpoint>, IEquatable<ConsumerEndpoint>, IEquatable<ConsumerEndpoint<MqttConsumerEndpointConfiguration>>, IEquatable<MqttConsumerEndpoint>
- Inheritance
-
MqttConsumerEndpoint
- Implements
- Inherited Members
Constructors
MqttConsumerEndpoint(MqttConsumerEndpoint)
protected MqttConsumerEndpoint(MqttConsumerEndpoint original)
Parameters
originalMqttConsumerEndpoint
MqttConsumerEndpoint(string, MqttConsumerEndpointConfiguration)
Initializes a new instance of the MqttConsumerEndpoint class.
public MqttConsumerEndpoint(string topic, MqttConsumerEndpointConfiguration configuration)
Parameters
topicstringThe topic.
configurationMqttConsumerEndpointConfigurationThe consumer configuration.
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Topic
Gets the source topic.
public string Topic { get; }
Property Value
Methods
Equals(MqttConsumerEndpoint?)
public virtual bool Equals(MqttConsumerEndpoint? other)
Parameters
otherMqttConsumerEndpoint
Returns
Equals(ConsumerEndpoint<MqttConsumerEndpointConfiguration>?)
public override sealed bool Equals(ConsumerEndpoint<MqttConsumerEndpointConfiguration>? 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
Operators
operator ==(MqttConsumerEndpoint?, MqttConsumerEndpoint?)
public static bool operator ==(MqttConsumerEndpoint? left, MqttConsumerEndpoint? right)
Parameters
leftMqttConsumerEndpointrightMqttConsumerEndpoint
Returns
operator !=(MqttConsumerEndpoint?, MqttConsumerEndpoint?)
public static bool operator !=(MqttConsumerEndpoint? left, MqttConsumerEndpoint? right)
Parameters
leftMqttConsumerEndpointrightMqttConsumerEndpoint