소스 검색

Remove client disconnected handler from wrong implementation location.

release/3.x.x
Christian 3 년 전
부모
커밋
8f1d4e3c22
4개의 변경된 파일6개의 추가작업 그리고 24개의 파일을 삭제
  1. +3
    -6
      Source/MQTTnet/Server/IMqttServerOptions.cs
  2. +0
    -1
      Source/MQTTnet/Server/MqttClientSessionsManager.cs
  3. +2
    -4
      Source/MQTTnet/Server/MqttServerOptions.cs
  4. +1
    -13
      Source/MQTTnet/Server/MqttServerOptionsBuilder.cs

+ 3
- 6
Source/MQTTnet/Server/IMqttServerOptions.cs 파일 보기

@@ -8,7 +8,7 @@ namespace MQTTnet.Server
/// Gets the client identifier.
/// Hint: This identifier needs to be unique over all used clients / devices on the broker to avoid connection issues.
/// </summary>
string ClientId { get; set; }
string ClientId { get; }

bool EnablePersistentSessions { get; }

@@ -23,16 +23,13 @@ namespace MQTTnet.Server
IMqttServerUnsubscriptionInterceptor UnsubscriptionInterceptor { get; }
IMqttServerApplicationMessageInterceptor ApplicationMessageInterceptor { get; }
IMqttServerClientMessageQueueInterceptor ClientMessageQueueInterceptor { get; }

IMqttServerApplicationMessageInterceptor UndeliveredMessageInterceptor { get; }
MqttServerTcpEndpointOptions DefaultEndpointOptions { get; }
MqttServerTlsTcpEndpointOptions TlsEndpointOptions { get; }

IMqttServerStorage Storage { get; }

IMqttRetainedMessagesManager RetainedMessagesManager { get; }

IMqttServerApplicationMessageInterceptor UndeliveredMessageInterceptor { get; set; }

IMqttServerClientDisconnectedHandler ClientDisconnectedInterceptor { get; set; }
}
}

+ 0
- 1
Source/MQTTnet/Server/MqttClientSessionsManager.cs 파일 보기

@@ -13,7 +13,6 @@ using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using MQTTnet.Client.Disconnecting;
using OperationCanceledException = System.OperationCanceledException;

namespace MQTTnet.Server
{


+ 2
- 4
Source/MQTTnet/Server/MqttServerOptions.cs 파일 보기

@@ -34,12 +34,10 @@ namespace MQTTnet.Server

public IMqttServerUnsubscriptionInterceptor UnsubscriptionInterceptor { get; set; }

public IMqttServerApplicationMessageInterceptor UndeliveredMessageInterceptor { get; set; }

public IMqttServerStorage Storage { get; set; }

public IMqttRetainedMessagesManager RetainedMessagesManager { get; set; } = new MqttRetainedMessagesManager();

public IMqttServerApplicationMessageInterceptor UndeliveredMessageInterceptor { get; set; }

public IMqttServerClientDisconnectedHandler ClientDisconnectedInterceptor { get; set; }
}
}

+ 1
- 13
Source/MQTTnet/Server/MqttServerOptionsBuilder.cs 파일 보기

@@ -170,19 +170,7 @@ namespace MQTTnet.Server
_options.ConnectionValidator = new MqttServerConnectionValidatorDelegate(value);
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)
{
_options.ApplicationMessageInterceptor = value;


불러오는 중...
취소
저장