mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-21 04:03:05 +08:00
Remove client disconnected handler from wrong implementation location.
This commit is contained in:
@@ -8,7 +8,7 @@ namespace MQTTnet.Server
|
|||||||
/// Gets the client identifier.
|
/// Gets the client identifier.
|
||||||
/// Hint: This identifier needs to be unique over all used clients / devices on the broker to avoid connection issues.
|
/// Hint: This identifier needs to be unique over all used clients / devices on the broker to avoid connection issues.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
string ClientId { get; set; }
|
string ClientId { get; }
|
||||||
|
|
||||||
bool EnablePersistentSessions { get; }
|
bool EnablePersistentSessions { get; }
|
||||||
|
|
||||||
@@ -23,6 +23,7 @@ namespace MQTTnet.Server
|
|||||||
IMqttServerUnsubscriptionInterceptor UnsubscriptionInterceptor { get; }
|
IMqttServerUnsubscriptionInterceptor UnsubscriptionInterceptor { get; }
|
||||||
IMqttServerApplicationMessageInterceptor ApplicationMessageInterceptor { get; }
|
IMqttServerApplicationMessageInterceptor ApplicationMessageInterceptor { get; }
|
||||||
IMqttServerClientMessageQueueInterceptor ClientMessageQueueInterceptor { get; }
|
IMqttServerClientMessageQueueInterceptor ClientMessageQueueInterceptor { get; }
|
||||||
|
IMqttServerApplicationMessageInterceptor UndeliveredMessageInterceptor { get; }
|
||||||
|
|
||||||
MqttServerTcpEndpointOptions DefaultEndpointOptions { get; }
|
MqttServerTcpEndpointOptions DefaultEndpointOptions { get; }
|
||||||
MqttServerTlsTcpEndpointOptions TlsEndpointOptions { get; }
|
MqttServerTlsTcpEndpointOptions TlsEndpointOptions { get; }
|
||||||
@@ -30,9 +31,5 @@ namespace MQTTnet.Server
|
|||||||
IMqttServerStorage Storage { get; }
|
IMqttServerStorage Storage { get; }
|
||||||
|
|
||||||
IMqttRetainedMessagesManager RetainedMessagesManager { get; }
|
IMqttRetainedMessagesManager RetainedMessagesManager { get; }
|
||||||
|
|
||||||
IMqttServerApplicationMessageInterceptor UndeliveredMessageInterceptor { get; set; }
|
|
||||||
|
|
||||||
IMqttServerClientDisconnectedHandler ClientDisconnectedInterceptor { get; set; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,6 @@ using System.Linq;
|
|||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using MQTTnet.Client.Disconnecting;
|
using MQTTnet.Client.Disconnecting;
|
||||||
using OperationCanceledException = System.OperationCanceledException;
|
|
||||||
|
|
||||||
namespace MQTTnet.Server
|
namespace MQTTnet.Server
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -34,12 +34,10 @@ namespace MQTTnet.Server
|
|||||||
|
|
||||||
public IMqttServerUnsubscriptionInterceptor UnsubscriptionInterceptor { get; set; }
|
public IMqttServerUnsubscriptionInterceptor UnsubscriptionInterceptor { get; set; }
|
||||||
|
|
||||||
|
public IMqttServerApplicationMessageInterceptor UndeliveredMessageInterceptor { get; set; }
|
||||||
|
|
||||||
public IMqttServerStorage Storage { get; set; }
|
public IMqttServerStorage Storage { get; set; }
|
||||||
|
|
||||||
public IMqttRetainedMessagesManager RetainedMessagesManager { get; set; } = new MqttRetainedMessagesManager();
|
public IMqttRetainedMessagesManager RetainedMessagesManager { get; set; } = new MqttRetainedMessagesManager();
|
||||||
|
|
||||||
public IMqttServerApplicationMessageInterceptor UndeliveredMessageInterceptor { get; set; }
|
|
||||||
|
|
||||||
public IMqttServerClientDisconnectedHandler ClientDisconnectedInterceptor { get; set; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -171,18 +171,6 @@ namespace MQTTnet.Server
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MqttServerOptionsBuilder WithDisconnectedInterceptor(IMqttServerClientDisconnectedHandler value)
|
|
||||||
{
|
|
||||||
_options.ClientDisconnectedInterceptor = value;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MqttServerOptionsBuilder WithDisconnectedInterceptor(Action<MqttServerClientDisconnectedEventArgs> value)
|
|
||||||
{
|
|
||||||
_options.ClientDisconnectedInterceptor = new MqttServerClientDisconnectedHandlerDelegate(value);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MqttServerOptionsBuilder WithApplicationMessageInterceptor(IMqttServerApplicationMessageInterceptor value)
|
public MqttServerOptionsBuilder WithApplicationMessageInterceptor(IMqttServerApplicationMessageInterceptor value)
|
||||||
{
|
{
|
||||||
_options.ApplicationMessageInterceptor = value;
|
_options.ApplicationMessageInterceptor = value;
|
||||||
|
|||||||
Reference in New Issue
Block a user