diff --git a/Source/MQTTnet.Extensions.ManagedClient/ManagedMqttApplicationMessage.cs b/Source/MQTTnet.Extensions.ManagedClient/ManagedMqttApplicationMessage.cs index bba73b0..e8906e2 100644 --- a/Source/MQTTnet.Extensions.ManagedClient/ManagedMqttApplicationMessage.cs +++ b/Source/MQTTnet.Extensions.ManagedClient/ManagedMqttApplicationMessage.cs @@ -2,10 +2,15 @@ namespace MQTTnet.Extensions.ManagedClient { - public class ManagedMqttApplicationMessage + public class ManagedMqttApplicationMessage : IEquatable { public Guid Id { get; set; } = Guid.NewGuid(); public MqttApplicationMessage ApplicationMessage { get; set; } + + public bool Equals(ManagedMqttApplicationMessage other) + { + return Id.Equals(other.Id); + } } }