Browse Source

Refactor code.

release/3.x.x
Christian Kratky 4 years ago
parent
commit
ccd102a59f
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      Source/MQTTnet/PacketDispatcher/MqttPacketDispatcher.cs
  2. +1
    -1
      Source/MQTTnet/Server/Status/MqttClientStatus.cs
  3. +1
    -1
      Source/MQTTnet/Server/Status/MqttSessionStatus.cs

+ 1
- 1
Source/MQTTnet/PacketDispatcher/MqttPacketDispatcher.cs View File

@@ -51,7 +51,7 @@ namespace MQTTnet.PacketDispatcher
throw new MqttProtocolViolationException($"Received packet '{packet}' at an unexpected time."); throw new MqttProtocolViolationException($"Received packet '{packet}' at an unexpected time.");
} }


public void Reset()
public void Cancel()
{ {
foreach (var awaiter in _awaiters) foreach (var awaiter in _awaiters)
{ {


+ 1
- 1
Source/MQTTnet/Server/Status/MqttClientStatus.cs View File

@@ -4,7 +4,7 @@ using System.Threading.Tasks;


namespace MQTTnet.Server.Status namespace MQTTnet.Server.Status
{ {
public class MqttClientStatus : IMqttClientStatus
public sealed class MqttClientStatus : IMqttClientStatus
{ {
readonly MqttClientConnection _connection; readonly MqttClientConnection _connection;




+ 1
- 1
Source/MQTTnet/Server/Status/MqttSessionStatus.cs View File

@@ -4,7 +4,7 @@ using System.Threading.Tasks;


namespace MQTTnet.Server.Status namespace MQTTnet.Server.Status
{ {
public class MqttSessionStatus : IMqttSessionStatus
public sealed class MqttSessionStatus : IMqttSessionStatus
{ {
readonly MqttClientSession _session; readonly MqttClientSession _session;
readonly MqttClientSessionsManager _sessionsManager; readonly MqttClientSessionsManager _sessionsManager;


Loading…
Cancel
Save