Преглед на файлове

fixed some warnings

release/3.x.x
JanEggers преди 5 години
родител
ревизия
ac06a001e2
променени са 7 файла, в които са добавени 11 реда и са изтрити 10 реда
  1. +2
    -1
      Tests/MQTTnet.Benchmarks/LoggerBenchmark.cs
  2. +2
    -1
      Tests/MQTTnet.Benchmarks/MessageProcessingBenchmark.cs
  3. +2
    -1
      Tests/MQTTnet.Benchmarks/SerializerBenchmark.cs
  4. +2
    -1
      Tests/MQTTnet.Benchmarks/TopicFilterComparerBenchmark.cs
  5. +1
    -1
      Tests/MQTTnet.Core.Tests/Server_Tests.cs
  6. +1
    -4
      Tests/MQTTnet.TestApp.AspNetCore2/MQTTnet.TestApp.AspNetCore2.csproj
  7. +1
    -1
      Tests/MQTTnet.TestApp.NetCore/ServerTest.cs

+ 2
- 1
Tests/MQTTnet.Benchmarks/LoggerBenchmark.cs Целия файл

@@ -1,9 +1,10 @@
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Jobs;
using MQTTnet.Diagnostics;

namespace MQTTnet.Benchmarks
{
[ClrJob]
[SimpleJob(RuntimeMoniker.Net461)]
[RPlotExporter]
[MemoryDiagnoser]
public class LoggerBenchmark


+ 2
- 1
Tests/MQTTnet.Benchmarks/MessageProcessingBenchmark.cs Целия файл

@@ -1,11 +1,12 @@
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Jobs;
using MQTTnet.Client;
using MQTTnet.Client.Options;
using MQTTnet.Server;

namespace MQTTnet.Benchmarks
{
[ClrJob]
[SimpleJob(RuntimeMoniker.Net461)]
[RPlotExporter, RankColumn]
[MemoryDiagnoser]
public class MessageProcessingBenchmark


+ 2
- 1
Tests/MQTTnet.Benchmarks/SerializerBenchmark.cs Целия файл

@@ -8,10 +8,11 @@ using MQTTnet.Adapter;
using MQTTnet.Channel;
using MQTTnet.Formatter;
using MQTTnet.Formatter.V3;
using BenchmarkDotNet.Jobs;

namespace MQTTnet.Benchmarks
{
[ClrJob]
[SimpleJob(RuntimeMoniker.Net461)]
[RPlotExporter]
[MemoryDiagnoser]
public class SerializerBenchmark


+ 2
- 1
Tests/MQTTnet.Benchmarks/TopicFilterComparerBenchmark.cs Целия файл

@@ -1,10 +1,11 @@
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Jobs;
using MQTTnet.Server;
using System;

namespace MQTTnet.Benchmarks
{
[ClrJob]
[SimpleJob(RuntimeMoniker.Net461)]
[RPlotExporter]
[MemoryDiagnoser]
public class TopicFilterComparerBenchmark


+ 1
- 1
Tests/MQTTnet.Core.Tests/Server_Tests.cs Целия файл

@@ -895,7 +895,7 @@ namespace MQTTnet.Tests
{
var serverOptions = new MqttServerOptionsBuilder().WithConnectionValidator(context =>
{
context.ReturnCode = MqttConnectReturnCode.ConnectionRefusedNotAuthorized;
context.ReasonCode = MqttConnectReasonCode.NotAuthorized;
});

using (var testEnvironment = new TestEnvironment(TestContext))


+ 1
- 4
Tests/MQTTnet.TestApp.AspNetCore2/MQTTnet.TestApp.AspNetCore2.csproj Целия файл

@@ -11,14 +11,11 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore" Version="2.1.6" />
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.6" />
<PackageReference Include="Microsoft.AspNetCore.Connections.Abstractions" Version="2.1.3" />
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.1.1" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.1.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\Source\MQTTnet.AspnetCore\MQTTnet.AspNetCore.csproj" />
<ProjectReference Include="..\..\Source\MQTTnet\MQTTnet.csproj" />
</ItemGroup>

<ItemGroup>


+ 1
- 1
Tests/MQTTnet.TestApp.NetCore/ServerTest.cs Целия файл

@@ -30,7 +30,7 @@ namespace MQTTnet.TestApp.NetCore
{
if (p.Username != "USER" || p.Password != "PASS")
{
p.ReturnCode = MqttConnectReturnCode.ConnectionRefusedBadUsernameOrPassword;
p.ReasonCode = MqttConnectReasonCode.BadUserNameOrPassword;
}
}
}),


Зареждане…
Отказ
Запис