Add support for reset of connection statistics. Refactor keep alive monitor.

This commit is contained in:
Christian Kratky
2019-06-06 21:12:32 +02:00
parent 6262a16504
commit b0ad6bda70
8 changed files with 60 additions and 23 deletions
@@ -145,6 +145,12 @@ namespace MQTTnet.AspNetCore
return null;
}
public void ResetStatistics()
{
BytesReceived = 0;
BytesSent = 0;
}
public async Task SendPacketAsync(MqttBasePacket packet, TimeSpan timeout, CancellationToken cancellationToken)
{
var formatter = PacketFormatterAdapter;