mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 09:13:02 +08:00
* Adds events for delivered and dropped messages. * Rename new events to match other namings * Update ReleaseNotes.md --------- Co-authored-by: Christian <6939810+chkr1011@users.noreply.github.com>
22 lines
745 B
C#
22 lines
745 B
C#
// Licensed to the .NET Foundation under one or more agreements.
|
|
// The .NET Foundation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
using System;
|
|
using MQTTnet.Packets;
|
|
|
|
namespace MQTTnet.Server
|
|
{
|
|
public sealed class QueueMessageOverwrittenEventArgs : EventArgs
|
|
{
|
|
public QueueMessageOverwrittenEventArgs(string receiverClientId, MqttPacket packet)
|
|
{
|
|
ReceiverClientId = receiverClientId ?? throw new ArgumentNullException(nameof(receiverClientId));
|
|
Packet = packet ?? throw new ArgumentNullException(nameof(packet));
|
|
}
|
|
|
|
public MqttPacket Packet { get; }
|
|
|
|
public string ReceiverClientId { get; }
|
|
}
|
|
} |