Procházet zdrojové kódy

Refactoring minor issues

release/3.x.x
Christian před 6 roky
rodič
revize
d2049d63d6
3 změnil soubory, kde provedl 2 přidání a 3 odebrání
  1. +0
    -1
      Frameworks/MQTTnet.NetStandard/Server/MqttClientPendingMessagesQueue.cs
  2. +1
    -1
      Frameworks/MQTTnet.NetStandard/Server/MqttClientSessionsManager.cs
  3. +1
    -1
      Frameworks/MQTTnet.NetStandard/Server/MqttClientSubscriptionsManager.cs

+ 0
- 1
Frameworks/MQTTnet.NetStandard/Server/MqttClientPendingMessagesQueue.cs Zobrazit soubor

@@ -1,6 +1,5 @@
using System;
using System.Collections.Concurrent;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using MQTTnet.Adapter;


+ 1
- 1
Frameworks/MQTTnet.NetStandard/Server/MqttClientSessionsManager.cs Zobrazit soubor

@@ -187,7 +187,7 @@ namespace MQTTnet.Server
{
foreach (var clientSession in _sessions.Values)
{
await clientSession.EnqueueApplicationMessageAsync(applicationMessage);
await clientSession.EnqueueApplicationMessageAsync(applicationMessage).ConfigureAwait(false);
}
}
finally


+ 1
- 1
Frameworks/MQTTnet.NetStandard/Server/MqttClientSubscriptionsManager.cs Zobrazit soubor

@@ -10,8 +10,8 @@ namespace MQTTnet.Server
{
public sealed class MqttClientSubscriptionsManager : IDisposable
{
private readonly SemaphoreSlim _semaphore = new SemaphoreSlim(1, 1);
private readonly Dictionary<string, MqttQualityOfServiceLevel> _subscriptions = new Dictionary<string, MqttQualityOfServiceLevel>();
private readonly SemaphoreSlim _semaphore = new SemaphoreSlim(1, 1);
private readonly IMqttServerOptions _options;
private readonly string _clientId;



Načítá se…
Zrušit
Uložit