Refactor ConnectedClient statistics API

This commit is contained in:
Christian
2018-05-16 00:08:42 +02:00
parent 719838de3b
commit fbf1cbc76e
24 changed files with 306 additions and 350 deletions
@@ -0,0 +1,29 @@
using System;
using System.Threading.Tasks;
using MQTTnet.Serializer;
namespace MQTTnet.Server
{
public interface IMqttClientSessionStatus
{
string ClientId { get; }
string Endpoint { get; }
bool IsConnected { get; }
MqttProtocolVersion? ProtocolVersion { get; }
TimeSpan LastPacketReceived { get; }
TimeSpan LastNonKeepAlivePacketReceived { get; }
int PendingApplicationMessagesCount { get; }
Task DisconnectAsync();
Task DeleteSessionAsync();
Task ClearPendingApplicationMessagesAsync();
}
}