Extend interceptors.

This commit is contained in:
Christian
2021-10-10 10:56:14 +02:00
parent db00682c75
commit 8c9460337f
23 changed files with 590 additions and 119 deletions
@@ -22,6 +22,8 @@ namespace MQTTnet.Server.Internal
ApplicationMessagesQueue = new MqttClientSessionApplicationMessagesQueue(serverOptions);
}
public event EventHandler Deleted;
public string ClientId { get; }
public bool IsCleanSession { get; set; } = true;
@@ -44,5 +46,10 @@ namespace MQTTnet.Server.Internal
status.PendingApplicationMessagesCount = ApplicationMessagesQueue.Count;
status.Items = Items;
}
public void OnDeleted()
{
Deleted?.Invoke(this, EventArgs.Empty);
}
}
}