Преглед изворни кода

Reorganize solution structure.

release/3.x.x
Christian Kratky пре 6 година
родитељ
комит
20779dfece
100 измењених фајлова са 85 додато и 72 уклоњено
  1. +1
    -1
      Build/MQTTnet.AspNetCore.nuspec
  2. +5
    -5
      Build/MQTTnet.Extensions.ManagedClient.nuspec
  3. +5
    -5
      Build/MQTTnet.Extensions.Rpc.nuspec
  4. +5
    -5
      Build/MQTTnet.nuspec
  5. +15
    -15
      Build/build.ps1
  6. +5
    -5
      MQTTnet.sln
  7. +0
    -0
      Source/MQTTnet.AspnetCore/ApplicationBuilderExtensions.cs
  8. +2
    -2
      Source/MQTTnet.AspnetCore/MQTTnet.AspNetCore.csproj
  9. +0
    -0
      Source/MQTTnet.AspnetCore/MqttHostedServer.cs
  10. +0
    -0
      Source/MQTTnet.AspnetCore/MqttWebSocketServerAdapter.cs
  11. +0
    -0
      Source/MQTTnet.AspnetCore/ServiceCollectionExtensions.cs
  12. +0
    -0
      Source/MQTTnet.Extensions.ManagedClient/ApplicationMessageProcessedEventArgs.cs
  13. +0
    -0
      Source/MQTTnet.Extensions.ManagedClient/IManagedMqttClient.cs
  14. +0
    -0
      Source/MQTTnet.Extensions.ManagedClient/IManagedMqttClientOptions.cs
  15. +0
    -0
      Source/MQTTnet.Extensions.ManagedClient/IManagedMqttClientStorage.cs
  16. +1
    -1
      Source/MQTTnet.Extensions.ManagedClient/MQTTnet.Extensions.ManagedClient.csproj
  17. +0
    -0
      Source/MQTTnet.Extensions.ManagedClient/ManagedMqttApplicationMessage.cs
  18. +0
    -0
      Source/MQTTnet.Extensions.ManagedClient/ManagedMqttApplicationMessageBuilder.cs
  19. +0
    -0
      Source/MQTTnet.Extensions.ManagedClient/ManagedMqttClient.cs
  20. +0
    -0
      Source/MQTTnet.Extensions.ManagedClient/ManagedMqttClientExtensions.cs
  21. +0
    -0
      Source/MQTTnet.Extensions.ManagedClient/ManagedMqttClientOptions.cs
  22. +0
    -0
      Source/MQTTnet.Extensions.ManagedClient/ManagedMqttClientOptionsBuilder.cs
  23. +0
    -0
      Source/MQTTnet.Extensions.ManagedClient/ManagedMqttClientStorageManager.cs
  24. +0
    -0
      Source/MQTTnet.Extensions.ManagedClient/MqttFactoryExtensions.cs
  25. +0
    -0
      Source/MQTTnet.Extensions.ManagedClient/ReconnectionResult.cs
  26. +1
    -1
      Source/MQTTnet.Extensions.Rpc/MQTTnet.Extensions.Rpc.csproj
  27. +0
    -0
      Source/MQTTnet.Extensions.Rpc/MqttRpcClient.cs
  28. +0
    -0
      Source/MQTTnet.Extensions.Rpc/SampleCCode.c
  29. +0
    -0
      Source/MQTTnet/Adapter/IMqttChannelAdapter.cs
  30. +0
    -0
      Source/MQTTnet/Adapter/IMqttServerAdapter.cs
  31. +0
    -0
      Source/MQTTnet/Adapter/MqttChannelAdapter.cs
  32. +0
    -0
      Source/MQTTnet/Adapter/MqttConnectingFailedException.cs
  33. +0
    -0
      Source/MQTTnet/Adapter/MqttServerAdapterClientAcceptedEventArgs.cs
  34. +0
    -0
      Source/MQTTnet/Adapter/ReceivedMqttPacket.cs
  35. +0
    -0
      Source/MQTTnet/ApplicationMessagePublisherExtensions.cs
  36. +0
    -0
      Source/MQTTnet/Channel/IMqttChannel.cs
  37. +0
    -0
      Source/MQTTnet/Client/IMqttClient.cs
  38. +0
    -0
      Source/MQTTnet/Client/IMqttClientAdapterFactory.cs
  39. +0
    -0
      Source/MQTTnet/Client/IMqttClientChannelOptions.cs
  40. +0
    -0
      Source/MQTTnet/Client/IMqttClientCredentials.cs
  41. +0
    -0
      Source/MQTTnet/Client/IMqttClientFactory.cs
  42. +0
    -0
      Source/MQTTnet/Client/IMqttClientOptions.cs
  43. +0
    -0
      Source/MQTTnet/Client/MqttClient.cs
  44. +0
    -0
      Source/MQTTnet/Client/MqttClientConnectResult.cs
  45. +0
    -0
      Source/MQTTnet/Client/MqttClientConnectedEventArgs.cs
  46. +0
    -0
      Source/MQTTnet/Client/MqttClientCredentials.cs
  47. +0
    -0
      Source/MQTTnet/Client/MqttClientDisconnectedEventArgs.cs
  48. +0
    -0
      Source/MQTTnet/Client/MqttClientExtensions.cs
  49. +0
    -0
      Source/MQTTnet/Client/MqttClientOptions.cs
  50. +0
    -0
      Source/MQTTnet/Client/MqttClientOptionsBuilder.cs
  51. +0
    -0
      Source/MQTTnet/Client/MqttClientTcpOptions.cs
  52. +0
    -0
      Source/MQTTnet/Client/MqttClientTcpOptionsExtensions.cs
  53. +6
    -1
      Source/MQTTnet/Client/MqttClientTlsOptions.cs
  54. +0
    -0
      Source/MQTTnet/Client/MqttClientWebSocketOptions.cs
  55. +0
    -0
      Source/MQTTnet/Client/MqttPacketDispatcher.cs
  56. +0
    -0
      Source/MQTTnet/Client/MqttPacketIdentifierProvider.cs
  57. +0
    -0
      Source/MQTTnet/Client/MqttSubscribeResult.cs
  58. +0
    -0
      Source/MQTTnet/Diagnostics/IMqttNetChildLogger.cs
  59. +0
    -0
      Source/MQTTnet/Diagnostics/IMqttNetLogger.cs
  60. +0
    -0
      Source/MQTTnet/Diagnostics/MqttNetChildLogger.cs
  61. +0
    -0
      Source/MQTTnet/Diagnostics/MqttNetGlobalLogger.cs
  62. +0
    -0
      Source/MQTTnet/Diagnostics/MqttNetLogLevel.cs
  63. +0
    -0
      Source/MQTTnet/Diagnostics/MqttNetLogMessage.cs
  64. +0
    -0
      Source/MQTTnet/Diagnostics/MqttNetLogMessagePublishedEventArgs.cs
  65. +0
    -0
      Source/MQTTnet/Diagnostics/MqttNetLogger.cs
  66. +0
    -0
      Source/MQTTnet/Diagnostics/TargetFrameworkInfoProvider.cs
  67. +0
    -0
      Source/MQTTnet/Exceptions/MqttCommunicationException.cs
  68. +0
    -0
      Source/MQTTnet/Exceptions/MqttCommunicationTimedOutException.cs
  69. +0
    -0
      Source/MQTTnet/Exceptions/MqttProtocolViolationException.cs
  70. +0
    -0
      Source/MQTTnet/IApplicationMessagePublisher.cs
  71. +0
    -0
      Source/MQTTnet/IApplicationMessageReceiver.cs
  72. +2
    -2
      Source/MQTTnet/Implementations/MqttClientAdapterFactory.cs
  73. +8
    -11
      Source/MQTTnet/Implementations/MqttTcpChannel.Uwp.cs
  74. +13
    -3
      Source/MQTTnet/Implementations/MqttTcpChannel.cs
  75. +16
    -15
      Source/MQTTnet/Implementations/MqttTcpServerAdapter.Uwp.cs
  76. +0
    -0
      Source/MQTTnet/Implementations/MqttTcpServerAdapter.cs
  77. +0
    -0
      Source/MQTTnet/Implementations/MqttTcpServerListener.cs
  78. +0
    -0
      Source/MQTTnet/Implementations/MqttWebSocketChannel.cs
  79. +0
    -0
      Source/MQTTnet/Internal/AsyncAutoResetEvent.cs
  80. +0
    -0
      Source/MQTTnet/Internal/AsyncLock.cs
  81. +0
    -0
      Source/MQTTnet/Internal/ExceptionHelper.cs
  82. +0
    -0
      Source/MQTTnet/Internal/MqttApplicationMessageExtensions.cs
  83. +0
    -0
      Source/MQTTnet/Internal/TaskExtensions.cs
  84. +0
    -0
      Source/MQTTnet/Internal/TestMqttChannel.cs
  85. +0
    -0
      Source/MQTTnet/MQTTnet.csproj
  86. +0
    -0
      Source/MQTTnet/MqttApplicationMessage.cs
  87. +0
    -0
      Source/MQTTnet/MqttApplicationMessageBuilder.cs
  88. +0
    -0
      Source/MQTTnet/MqttApplicationMessageExtensions.cs
  89. +0
    -0
      Source/MQTTnet/MqttApplicationMessageReceivedEventArgs.cs
  90. +0
    -0
      Source/MQTTnet/MqttFactory.cs
  91. +0
    -0
      Source/MQTTnet/Packets/IMqttPacketWithIdentifier.cs
  92. +0
    -0
      Source/MQTTnet/Packets/MqttBasePacket.cs
  93. +0
    -0
      Source/MQTTnet/Packets/MqttBasePublishPacket.cs
  94. +0
    -0
      Source/MQTTnet/Packets/MqttConnAckPacket.cs
  95. +0
    -0
      Source/MQTTnet/Packets/MqttConnectPacket.cs
  96. +0
    -0
      Source/MQTTnet/Packets/MqttDisconnectPacket.cs
  97. +0
    -0
      Source/MQTTnet/Packets/MqttPingReqPacket.cs
  98. +0
    -0
      Source/MQTTnet/Packets/MqttPingRespPacket.cs
  99. +0
    -0
      Source/MQTTnet/Packets/MqttPubAckPacket.cs
  100. +0
    -0
      Source/MQTTnet/Packets/MqttPubCompPacket.cs

+ 1
- 1
Build/MQTTnet.AspNetCore.nuspec Прегледај датотеку

@@ -23,6 +23,6 @@

<files>
<!-- .NET Standard 2.0 -->
<file src="..\Frameworks\MQTTnet.AspNetCore\bin\Release\netstandard2.0\MQTTnet.AspNetCore.*" target="lib\netstandard2.0\"/>
<file src="..\Source\MQTTnet.AspNetCore\bin\Release\netstandard2.0\MQTTnet.AspNetCore.*" target="lib\netstandard2.0\"/>
</files>
</package>

+ 5
- 5
Build/MQTTnet.Extensions.ManagedClient.nuspec Прегледај датотеку

@@ -38,16 +38,16 @@

<files>
<!-- .NET Standard 1.3 -->
<file src="..\Extensions\MQTTnet.Extensions.ManagedClient\bin\Release\netstandard1.3\MQTTnet.Extensions.ManagedClient.*" target="lib\netstandard1.3\"/>
<file src="..\Source\MQTTnet.Extensions.ManagedClient\bin\Release\netstandard1.3\MQTTnet.Extensions.ManagedClient.*" target="lib\netstandard1.3\"/>

<!-- .NET Standard 2.0 -->
<file src="..\Extensions\MQTTnet.Extensions.ManagedClient\bin\Release\netstandard2.0\MQTTnet.Extensions.ManagedClient.*" target="lib\netstandard2.0\"/>
<file src="..\Source\MQTTnet.Extensions.ManagedClient\bin\Release\netstandard2.0\MQTTnet.Extensions.ManagedClient.*" target="lib\netstandard2.0\"/>

<!-- Universal Windows -->
<file src="..\Extensions\MQTTnet.Extensions.ManagedClient\bin\Release\uap10.0\MQTTnet.Extensions.ManagedClient.*" target="lib\uap10.0\"/>
<file src="..\Source\MQTTnet.Extensions.ManagedClient\bin\Release\uap10.0\MQTTnet.Extensions.ManagedClient.*" target="lib\uap10.0\"/>

<!-- .NET Framework -->
<file src="..\Extensions\MQTTnet.Extensions.ManagedClient\bin\Release\net452\MQTTnet.Extensions.ManagedClient.*" target="lib\net452\"/>
<file src="..\Extensions\MQTTnet.Extensions.ManagedClient\bin\Release\net461\MQTTnet.Extensions.ManagedClient.*" target="lib\net461\"/>
<file src="..\Source\MQTTnet.Extensions.ManagedClient\bin\Release\net452\MQTTnet.Extensions.ManagedClient.*" target="lib\net452\"/>
<file src="..\Source\MQTTnet.Extensions.ManagedClient\bin\Release\net461\MQTTnet.Extensions.ManagedClient.*" target="lib\net461\"/>
</files>
</package>

+ 5
- 5
Build/MQTTnet.Extensions.Rpc.nuspec Прегледај датотеку

@@ -38,16 +38,16 @@

<files>
<!-- .NET Standard 1.3 -->
<file src="..\Extensions\MQTTnet.Extensions.Rpc\bin\Release\netstandard1.3\MQTTnet.Extensions.Rpc.*" target="lib\netstandard1.3\"/>
<file src="..\Source\MQTTnet.Extensions.Rpc\bin\Release\netstandard1.3\MQTTnet.Extensions.Rpc.*" target="lib\netstandard1.3\"/>

<!-- .NET Standard 2.0 -->
<file src="..\Extensions\MQTTnet.Extensions.Rpc\bin\Release\netstandard2.0\MQTTnet.Extensions.Rpc.*" target="lib\netstandard2.0\"/>
<file src="..\Source\MQTTnet.Extensions.Rpc\bin\Release\netstandard2.0\MQTTnet.Extensions.Rpc.*" target="lib\netstandard2.0\"/>

<!-- Universal Windows -->
<file src="..\Extensions\MQTTnet.Extensions.Rpc\bin\Release\uap10.0\MQTTnet.Extensions.Rpc.*" target="lib\uap10.0\"/>
<file src="..\Source\MQTTnet.Extensions.Rpc\bin\Release\uap10.0\MQTTnet.Extensions.Rpc.*" target="lib\uap10.0\"/>

<!-- .NET Framework -->
<file src="..\Extensions\MQTTnet.Extensions.Rpc\bin\Release\net452\MQTTnet.Extensions.Rpc.*" target="lib\net452\"/>
<file src="..\Extensions\MQTTnet.Extensions.Rpc\bin\Release\net461\MQTTnet.Extensions.Rpc.*" target="lib\net461\"/>
<file src="..\Source\MQTTnet.Extensions.Rpc\bin\Release\net452\MQTTnet.Extensions.Rpc.*" target="lib\net452\"/>
<file src="..\Source\MQTTnet.Extensions.Rpc\bin\Release\net461\MQTTnet.Extensions.Rpc.*" target="lib\net461\"/>
</files>
</package>

+ 5
- 5
Build/MQTTnet.nuspec Прегледај датотеку

@@ -57,16 +57,16 @@

<files>
<!-- .NET Standard 1.3 -->
<file src="..\Frameworks\MQTTnet.Netstandard\bin\Release\netstandard1.3\MQTTnet.*" target="lib\netstandard1.3\"/>
<file src="..\Source\MQTTnet\bin\Release\netstandard1.3\MQTTnet.*" target="lib\netstandard1.3\"/>
<!-- .NET Standard 2.0 -->
<file src="..\Frameworks\MQTTnet.Netstandard\bin\Release\netstandard2.0\MQTTnet.*" target="lib\netstandard2.0\"/>
<file src="..\Source\MQTTnet\bin\Release\netstandard2.0\MQTTnet.*" target="lib\netstandard2.0\"/>

<!-- Universal Windows -->
<file src="..\Frameworks\MQTTnet.Netstandard\bin\Release\uap10.0\MQTTnet.*" target="lib\uap10.0\"/>
<file src="..\Source\MQTTnet\bin\Release\uap10.0\MQTTnet.*" target="lib\uap10.0\"/>

<!-- .NET Framework -->
<file src="..\Frameworks\MQTTnet.Netstandard\bin\Release\net452\MQTTnet.*" target="lib\net452\"/>
<file src="..\Frameworks\MQTTnet.Netstandard\bin\Release\net461\MQTTnet.*" target="lib\net461\"/>
<file src="..\Source\MQTTnet\bin\Release\net452\MQTTnet.*" target="lib\net452\"/>
<file src="..\Source\MQTTnet\bin\Release\net461\MQTTnet.*" target="lib\net461\"/>
</files>
</package>

+ 15
- 15
Build/build.ps1 Прегледај датотеку

@@ -10,28 +10,28 @@ if ($path) {
$msbuild = join-path $path 'MSBuild\15.0\Bin\MSBuild.exe'

# Build the core library
&$msbuild ..\Frameworks\MQTTnet.Netstandard\MQTTnet.Netstandard.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="net452" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Frameworks\MQTTnet.Netstandard\MQTTnet.Netstandard.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="net461" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Frameworks\MQTTnet.Netstandard\MQTTnet.Netstandard.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="netstandard1.3" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Frameworks\MQTTnet.Netstandard\MQTTnet.Netstandard.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="netstandard2.0" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Frameworks\MQTTnet.Netstandard\MQTTnet.Netstandard.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="uap10.0" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Source\MQTTnet\MQTTnet.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="net452" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Source\MQTTnet\MQTTnet.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="net461" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Source\MQTTnet\MQTTnet.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="netstandard1.3" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Source\MQTTnet\MQTTnet.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="netstandard2.0" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Source\MQTTnet\MQTTnet.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="uap10.0" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
# Build the ASP.NET Core 2.0 extension
&$msbuild ..\Frameworks\MQTTnet.AspNetCore\MQTTnet.AspNetCore.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="netstandard2.0" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"

# Build the RPC extension
&$msbuild ..\Extensions\MQTTnet.Extensions.Rpc\MQTTnet.Extensions.Rpc.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="net452" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Extensions\MQTTnet.Extensions.Rpc\MQTTnet.Extensions.Rpc.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="net461" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Extensions\MQTTnet.Extensions.Rpc\MQTTnet.Extensions.Rpc.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="netstandard1.3" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Extensions\MQTTnet.Extensions.Rpc\MQTTnet.Extensions.Rpc.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="netstandard2.0" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Extensions\MQTTnet.Extensions.Rpc\MQTTnet.Extensions.Rpc.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="uap10.0" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Source\MQTTnet.Extensions.Rpc\MQTTnet.Extensions.Rpc.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="net452" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Source\MQTTnet.Extensions.Rpc\MQTTnet.Extensions.Rpc.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="net461" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Source\MQTTnet.Extensions.Rpc\MQTTnet.Extensions.Rpc.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="netstandard1.3" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Source\MQTTnet.Extensions.Rpc\MQTTnet.Extensions.Rpc.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="netstandard2.0" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Source\MQTTnet.Extensions.Rpc\MQTTnet.Extensions.Rpc.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="uap10.0" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"

# Build the Managed Client extension
&$msbuild ..\Extensions\MQTTnet.Extensions.ManagedClient\MQTTnet.Extensions.ManagedClient.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="net452" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Extensions\MQTTnet.Extensions.ManagedClient\MQTTnet.Extensions.ManagedClient.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="net461" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Extensions\MQTTnet.Extensions.ManagedClient\MQTTnet.Extensions.ManagedClient.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="netstandard1.3" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Extensions\MQTTnet.Extensions.ManagedClient\MQTTnet.Extensions.ManagedClient.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="netstandard2.0" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Extensions\MQTTnet.Extensions.ManagedClient\MQTTnet.Extensions.ManagedClient.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="uap10.0" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Source\MQTTnet.Extensions.ManagedClient\MQTTnet.Extensions.ManagedClient.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="net452" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Source\MQTTnet.Extensions.ManagedClient\MQTTnet.Extensions.ManagedClient.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="net461" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Source\MQTTnet.Extensions.ManagedClient\MQTTnet.Extensions.ManagedClient.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="netstandard1.3" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Source\MQTTnet.Extensions.ManagedClient\MQTTnet.Extensions.ManagedClient.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="netstandard2.0" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"
&$msbuild ..\Source\MQTTnet.Extensions.ManagedClient\MQTTnet.Extensions.ManagedClient.csproj /t:Build /p:Configuration="Release" /p:TargetFramework="uap10.0" /p:FileVersion=$assemblyVersion /p:AssemblyVersion=$assemblyVersion /verbosity:m /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=".\..\..\Build\codeSigningKey.pfx"

Remove-Item .\NuGet -Force -Recurse -ErrorAction SilentlyContinue



+ 5
- 5
MQTTnet.sln Прегледај датотеку

@@ -7,11 +7,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MQTTnet.Core.Tests", "Tests
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{9248C2E1-B9D6-40BF-81EC-86004D7765B4}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Frameworks", "Frameworks", "{32A630A7-2598-41D7-B625-204CD906F5FB}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Source", "Source", "{32A630A7-2598-41D7-B625-204CD906F5FB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MQTTnet.TestApp.UniversalWindows", "Tests\MQTTnet.TestApp.UniversalWindows\MQTTnet.TestApp.UniversalWindows.csproj", "{FF1F72D6-9524-4422-9497-3CC0002216ED}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MQTTnet", "Frameworks\MQTTnet.NetStandard\MQTTnet.csproj", "{3587E506-55A2-4EB3-99C7-DC01E42D25D2}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MQTTnet", "Source\MQTTnet\MQTTnet.csproj", "{3587E506-55A2-4EB3-99C7-DC01E42D25D2}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{67C28AC1-BC3A-420A-BE9C-FA2401431CF9}"
ProjectSection(SolutionItems) = preProject
@@ -34,15 +34,15 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MQTTnet.TestApp.NetCore", "
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MQTTnet.TestApp.AspNetCore2", "Tests\MQTTnet.TestApp.AspNetCore2\MQTTnet.TestApp.AspNetCore2.csproj", "{C6FF8AEA-0855-41EC-A1F3-AC262225BAB9}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MQTTnet.AspNetCore", "Frameworks\MQTTnet.AspnetCore\MQTTnet.AspNetCore.csproj", "{F10C4060-F7EE-4A83-919F-FF723E72F94A}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MQTTnet.AspNetCore", "Source\MQTTnet.AspnetCore\MQTTnet.AspNetCore.csproj", "{F10C4060-F7EE-4A83-919F-FF723E72F94A}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Extensions", "Extensions", "{12816BCC-AF9E-44A9-9AE5-C246AF2A0587}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MQTTnet.Extensions.Rpc", "Extensions\MQTTnet.Extensions.Rpc\MQTTnet.Extensions.Rpc.csproj", "{C444E9C8-95FA-430E-9126-274129DE16CD}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MQTTnet.Extensions.Rpc", "Source\MQTTnet.Extensions.Rpc\MQTTnet.Extensions.Rpc.csproj", "{C444E9C8-95FA-430E-9126-274129DE16CD}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MQTTnet.Benchmarks", "Tests\MQTTnet.Benchmarks\MQTTnet.Benchmarks.csproj", "{998D04DD-7CB0-45F5-A393-E2495C16399E}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MQTTnet.Extensions.ManagedClient", "Extensions\MQTTnet.Extensions.ManagedClient\MQTTnet.Extensions.ManagedClient.csproj", "{C400533A-8EBA-4F0B-BF4D-295C3708604B}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MQTTnet.Extensions.ManagedClient", "Source\MQTTnet.Extensions.ManagedClient\MQTTnet.Extensions.ManagedClient.csproj", "{C400533A-8EBA-4F0B-BF4D-295C3708604B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution


Frameworks/MQTTnet.AspnetCore/ApplicationBuilderExtensions.cs → Source/MQTTnet.AspnetCore/ApplicationBuilderExtensions.cs Прегледај датотеку


Frameworks/MQTTnet.AspnetCore/MQTTnet.AspnetCore.csproj → Source/MQTTnet.AspnetCore/MQTTnet.AspNetCore.csproj Прегледај датотеку

@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
@@ -22,7 +22,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\MQTTnet.NetStandard\MQTTnet.csproj" />
<ProjectReference Include="..\MQTTnet\MQTTnet.csproj" />
</ItemGroup>

</Project>

Frameworks/MQTTnet.AspnetCore/MqttHostedServer.cs → Source/MQTTnet.AspnetCore/MqttHostedServer.cs Прегледај датотеку


Frameworks/MQTTnet.AspnetCore/MqttWebSocketServerAdapter.cs → Source/MQTTnet.AspnetCore/MqttWebSocketServerAdapter.cs Прегледај датотеку


Frameworks/MQTTnet.AspnetCore/ServiceCollectionExtensions.cs → Source/MQTTnet.AspnetCore/ServiceCollectionExtensions.cs Прегледај датотеку


Extensions/MQTTnet.Extensions.ManagedClient/ApplicationMessageProcessedEventArgs.cs → Source/MQTTnet.Extensions.ManagedClient/ApplicationMessageProcessedEventArgs.cs Прегледај датотеку


Extensions/MQTTnet.Extensions.ManagedClient/IManagedMqttClient.cs → Source/MQTTnet.Extensions.ManagedClient/IManagedMqttClient.cs Прегледај датотеку


Extensions/MQTTnet.Extensions.ManagedClient/IManagedMqttClientOptions.cs → Source/MQTTnet.Extensions.ManagedClient/IManagedMqttClientOptions.cs Прегледај датотеку


Extensions/MQTTnet.Extensions.ManagedClient/IManagedMqttClientStorage.cs → Source/MQTTnet.Extensions.ManagedClient/IManagedMqttClientStorage.cs Прегледај датотеку


Extensions/MQTTnet.Extensions.ManagedClient/MQTTnet.Extensions.ManagedClient.csproj → Source/MQTTnet.Extensions.ManagedClient/MQTTnet.Extensions.ManagedClient.csproj Прегледај датотеку

@@ -25,7 +25,7 @@
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\Frameworks\MQTTnet.NetStandard\MQTTnet.csproj" />
<ProjectReference Include="..\MQTTnet\MQTTnet.csproj" />
</ItemGroup>

</Project>

Extensions/MQTTnet.Extensions.ManagedClient/ManagedMqttApplicationMessage.cs → Source/MQTTnet.Extensions.ManagedClient/ManagedMqttApplicationMessage.cs Прегледај датотеку


Extensions/MQTTnet.Extensions.ManagedClient/ManagedMqttApplicationMessageBuilder.cs → Source/MQTTnet.Extensions.ManagedClient/ManagedMqttApplicationMessageBuilder.cs Прегледај датотеку


Extensions/MQTTnet.Extensions.ManagedClient/ManagedMqttClient.cs → Source/MQTTnet.Extensions.ManagedClient/ManagedMqttClient.cs Прегледај датотеку


Extensions/MQTTnet.Extensions.ManagedClient/ManagedMqttClientExtensions.cs → Source/MQTTnet.Extensions.ManagedClient/ManagedMqttClientExtensions.cs Прегледај датотеку


Extensions/MQTTnet.Extensions.ManagedClient/ManagedMqttClientOptions.cs → Source/MQTTnet.Extensions.ManagedClient/ManagedMqttClientOptions.cs Прегледај датотеку


Extensions/MQTTnet.Extensions.ManagedClient/ManagedMqttClientOptionsBuilder.cs → Source/MQTTnet.Extensions.ManagedClient/ManagedMqttClientOptionsBuilder.cs Прегледај датотеку


Extensions/MQTTnet.Extensions.ManagedClient/ManagedMqttClientStorageManager.cs → Source/MQTTnet.Extensions.ManagedClient/ManagedMqttClientStorageManager.cs Прегледај датотеку


Extensions/MQTTnet.Extensions.ManagedClient/MqttFactoryExtensions.cs → Source/MQTTnet.Extensions.ManagedClient/MqttFactoryExtensions.cs Прегледај датотеку


Extensions/MQTTnet.Extensions.ManagedClient/ReconnectionResult.cs → Source/MQTTnet.Extensions.ManagedClient/ReconnectionResult.cs Прегледај датотеку


Extensions/MQTTnet.Extensions.Rpc/MQTTnet.Extensions.Rpc.csproj → Source/MQTTnet.Extensions.Rpc/MQTTnet.Extensions.Rpc.csproj Прегледај датотеку

@@ -25,7 +25,7 @@
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\Frameworks\MQTTnet.NetStandard\MQTTnet.csproj" />
<ProjectReference Include="..\MQTTnet\MQTTnet.csproj" />
</ItemGroup>

</Project>

Extensions/MQTTnet.Extensions.Rpc/MqttRpcClient.cs → Source/MQTTnet.Extensions.Rpc/MqttRpcClient.cs Прегледај датотеку


Extensions/MQTTnet.Extensions.Rpc/SampleCCode.c → Source/MQTTnet.Extensions.Rpc/SampleCCode.c Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Adapter/IMqttChannelAdapter.cs → Source/MQTTnet/Adapter/IMqttChannelAdapter.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Adapter/IMqttServerAdapter.cs → Source/MQTTnet/Adapter/IMqttServerAdapter.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Adapter/MqttChannelAdapter.cs → Source/MQTTnet/Adapter/MqttChannelAdapter.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Adapter/MqttConnectingFailedException.cs → Source/MQTTnet/Adapter/MqttConnectingFailedException.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Adapter/MqttServerAdapterClientAcceptedEventArgs.cs → Source/MQTTnet/Adapter/MqttServerAdapterClientAcceptedEventArgs.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Adapter/ReceivedMqttPacket.cs → Source/MQTTnet/Adapter/ReceivedMqttPacket.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/ApplicationMessagePublisherExtensions.cs → Source/MQTTnet/ApplicationMessagePublisherExtensions.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Channel/IMqttChannel.cs → Source/MQTTnet/Channel/IMqttChannel.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Client/IMqttClient.cs → Source/MQTTnet/Client/IMqttClient.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Client/IMqttClientAdapterFactory.cs → Source/MQTTnet/Client/IMqttClientAdapterFactory.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Client/IMqttClientChannelOptions.cs → Source/MQTTnet/Client/IMqttClientChannelOptions.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Client/IMqttClientCredentials.cs → Source/MQTTnet/Client/IMqttClientCredentials.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Client/IMqttClientFactory.cs → Source/MQTTnet/Client/IMqttClientFactory.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Client/IMqttClientOptions.cs → Source/MQTTnet/Client/IMqttClientOptions.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Client/MqttClient.cs → Source/MQTTnet/Client/MqttClient.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Client/MqttClientConnectResult.cs → Source/MQTTnet/Client/MqttClientConnectResult.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Client/MqttClientConnectedEventArgs.cs → Source/MQTTnet/Client/MqttClientConnectedEventArgs.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Client/MqttClientCredentials.cs → Source/MQTTnet/Client/MqttClientCredentials.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Client/MqttClientDisconnectedEventArgs.cs → Source/MQTTnet/Client/MqttClientDisconnectedEventArgs.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Client/MqttClientExtensions.cs → Source/MQTTnet/Client/MqttClientExtensions.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Client/MqttClientOptions.cs → Source/MQTTnet/Client/MqttClientOptions.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Client/MqttClientOptionsBuilder.cs → Source/MQTTnet/Client/MqttClientOptionsBuilder.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Client/MqttClientTcpOptions.cs → Source/MQTTnet/Client/MqttClientTcpOptions.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Client/MqttClientTcpOptionsExtensions.cs → Source/MQTTnet/Client/MqttClientTcpOptionsExtensions.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Client/MqttClientTlsOptions.cs → Source/MQTTnet/Client/MqttClientTlsOptions.cs Прегледај датотеку

@@ -1,4 +1,7 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;

namespace MQTTnet.Client
{
@@ -13,5 +16,7 @@ namespace MQTTnet.Client
public bool AllowUntrustedCertificates { get; set; }

public List<byte[]> Certificates { get; set; }

public Func<X509Certificate, X509Chain, SslPolicyErrors, IMqttClientOptions, bool> CertificateValidationCallback { get; set; }
}
}

Frameworks/MQTTnet.NetStandard/Client/MqttClientWebSocketOptions.cs → Source/MQTTnet/Client/MqttClientWebSocketOptions.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Client/MqttPacketDispatcher.cs → Source/MQTTnet/Client/MqttPacketDispatcher.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Client/MqttPacketIdentifierProvider.cs → Source/MQTTnet/Client/MqttPacketIdentifierProvider.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Client/MqttSubscribeResult.cs → Source/MQTTnet/Client/MqttSubscribeResult.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Diagnostics/IMqttNetChildLogger.cs → Source/MQTTnet/Diagnostics/IMqttNetChildLogger.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Diagnostics/IMqttNetLogger.cs → Source/MQTTnet/Diagnostics/IMqttNetLogger.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Diagnostics/MqttNetChildLogger.cs → Source/MQTTnet/Diagnostics/MqttNetChildLogger.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Diagnostics/MqttNetGlobalLogger.cs → Source/MQTTnet/Diagnostics/MqttNetGlobalLogger.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Diagnostics/MqttNetLogLevel.cs → Source/MQTTnet/Diagnostics/MqttNetLogLevel.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Diagnostics/MqttNetLogMessage.cs → Source/MQTTnet/Diagnostics/MqttNetLogMessage.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Diagnostics/MqttNetLogMessagePublishedEventArgs.cs → Source/MQTTnet/Diagnostics/MqttNetLogMessagePublishedEventArgs.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Diagnostics/MqttNetLogger.cs → Source/MQTTnet/Diagnostics/MqttNetLogger.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Diagnostics/TargetFrameworkInfoProvider.cs → Source/MQTTnet/Diagnostics/TargetFrameworkInfoProvider.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Exceptions/MqttCommunicationException.cs → Source/MQTTnet/Exceptions/MqttCommunicationException.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Exceptions/MqttCommunicationTimedOutException.cs → Source/MQTTnet/Exceptions/MqttCommunicationTimedOutException.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Exceptions/MqttProtocolViolationException.cs → Source/MQTTnet/Exceptions/MqttProtocolViolationException.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/IApplicationMessagePublisher.cs → Source/MQTTnet/IApplicationMessagePublisher.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/IApplicationMessageReceiver.cs → Source/MQTTnet/IApplicationMessageReceiver.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Implementations/MqttClientAdapterFactory.cs → Source/MQTTnet/Implementations/MqttClientAdapterFactory.cs Прегледај датотеку

@@ -16,9 +16,9 @@ namespace MQTTnet.Implementations

switch (options.ChannelOptions)
{
case MqttClientTcpOptions tcpOptions:
case MqttClientTcpOptions _:
{
return new MqttChannelAdapter(new MqttTcpChannel(tcpOptions), serializer, logger);
return new MqttChannelAdapter(new MqttTcpChannel(options), serializer, logger);
}

case MqttClientWebSocketOptions webSocketOptions:

Frameworks/MQTTnet.NetStandard/Implementations/MqttTcpChannel.Uwp.cs → Source/MQTTnet/Implementations/MqttTcpChannel.Uwp.cs Прегледај датотеку

@@ -11,32 +11,29 @@ using Windows.Networking.Sockets;
using Windows.Security.Cryptography.Certificates;
using MQTTnet.Channel;
using MQTTnet.Client;
using MQTTnet.Server;

namespace MQTTnet.Implementations
{
public class MqttTcpChannel : IMqttChannel
{
// ReSharper disable once MemberCanBePrivate.Global
// ReSharper disable once AutoPropertyCanBeMadeGetOnly.Global
public static int BufferSize { get; set; } = 4096; // Can be changed for fine tuning by library user.

private readonly int _bufferSize = BufferSize;
private readonly MqttClientTcpOptions _options;
private readonly int _bufferSize;

private StreamSocket _socket;
private Stream _readStream;
private Stream _writeStream;

public MqttTcpChannel(MqttClientTcpOptions options)
public MqttTcpChannel(IMqttClientOptions clientOptions)
{
_options = options ?? throw new ArgumentNullException(nameof(options));

_bufferSize = options.BufferSize;
_options = (MqttClientTcpOptions)clientOptions.ChannelOptions;
_bufferSize = _options.BufferSize;
}

public MqttTcpChannel(StreamSocket socket)
public MqttTcpChannel(StreamSocket socket, IMqttServerOptions serverOptions)
{
_socket = socket ?? throw new ArgumentNullException(nameof(socket));
_bufferSize = serverOptions.DefaultEndpointOptions.BufferSize;

CreateStreams();
}
@@ -97,7 +94,7 @@ namespace MQTTnet.Implementations
TryDispose(_socket, () => _socket = null);
}

private static Certificate LoadCertificate(MqttClientTcpOptions options)
private static Certificate LoadCertificate(IMqttClientChannelOptions options)
{
if (options.TlsOptions.Certificates == null || !options.TlsOptions.Certificates.Any())
{

Frameworks/MQTTnet.NetStandard/Implementations/MqttTcpChannel.cs → Source/MQTTnet/Implementations/MqttTcpChannel.cs Прегледај датотеку

@@ -15,17 +15,19 @@ namespace MQTTnet.Implementations
{
public class MqttTcpChannel : IMqttChannel
{
private readonly IMqttClientOptions _clientOptions;
private readonly MqttClientTcpOptions _options;
private Socket _socket;
private Stream _stream;

/// <summary>
/// called on client sockets are created in connect
/// </summary>
public MqttTcpChannel(MqttClientTcpOptions options)
public MqttTcpChannel(IMqttClientOptions clientOptions)
{
_options = options ?? throw new ArgumentNullException(nameof(options));
_clientOptions = clientOptions ?? throw new ArgumentNullException(nameof(clientOptions));
_options = (MqttClientTcpOptions)clientOptions.ChannelOptions;
}

/// <summary>
@@ -39,6 +41,7 @@ namespace MQTTnet.Implementations
CreateStream(sslStream);
}

[Obsolete("There is a new callback at the TLS options. This one will be deleted soon.")]
public static Func<X509Certificate, X509Chain, SslPolicyErrors, MqttClientTcpOptions, bool> CustomCertificateValidationCallback { get; set; }

public string Endpoint => _socket?.RemoteEndPoint?.ToString();
@@ -90,6 +93,13 @@ namespace MQTTnet.Implementations

private bool InternalUserCertificateValidationCallback(object sender, X509Certificate x509Certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
{
// Try the instance callback.
if (_options.TlsOptions.CertificateValidationCallback != null)
{
return _options.TlsOptions.CertificateValidationCallback(x509Certificate, chain, sslPolicyErrors,_clientOptions);
}

// Try static callback.
if (CustomCertificateValidationCallback != null)
{
return CustomCertificateValidationCallback(x509Certificate, chain, sslPolicyErrors, _options);

Frameworks/MQTTnet.NetStandard/Implementations/MqttTcpServerAdapter.Uwp.cs → Source/MQTTnet/Implementations/MqttTcpServerAdapter.Uwp.cs Прегледај датотеку

@@ -12,7 +12,9 @@ namespace MQTTnet.Implementations
public class MqttTcpServerAdapter : IMqttServerAdapter
{
private readonly IMqttNetChildLogger _logger;
private StreamSocketListener _defaultEndpointSocket;

private IMqttServerOptions _options;
private StreamSocketListener _listener;

public MqttTcpServerAdapter(IMqttNetChildLogger logger)
{
@@ -25,22 +27,21 @@ namespace MQTTnet.Implementations

public async Task StartAsync(IMqttServerOptions options)
{
if (options == null) throw new ArgumentNullException(nameof(options));
_options = options ?? throw new ArgumentNullException(nameof(options));

if (_defaultEndpointSocket != null) throw new InvalidOperationException("Server is already started.");
if (_listener != null) throw new InvalidOperationException("Server is already started.");

if (options.DefaultEndpointOptions.IsEnabled)
{
_defaultEndpointSocket = new StreamSocketListener();
_listener = new StreamSocketListener();

// This also affects the client sockets.
_defaultEndpointSocket.Control.NoDelay = true;
_defaultEndpointSocket.Control.KeepAlive = true;
_defaultEndpointSocket.Control.QualityOfService = SocketQualityOfService.LowLatency;
_defaultEndpointSocket.ConnectionReceived += AcceptDefaultEndpointConnectionsAsync;
await _defaultEndpointSocket.BindServiceNameAsync(options.DefaultEndpointOptions.Port.ToString(), SocketProtectionLevel.PlainSocket);
_listener.Control.NoDelay = true;
_listener.Control.KeepAlive = true;
_listener.Control.QualityOfService = SocketQualityOfService.LowLatency;
_listener.ConnectionReceived += AcceptDefaultEndpointConnectionsAsync;
await _listener.BindServiceNameAsync(options.DefaultEndpointOptions.Port.ToString(), SocketProtectionLevel.PlainSocket);
}

if (options.TlsEndpointOptions.IsEnabled)
@@ -51,13 +52,13 @@ namespace MQTTnet.Implementations

public Task StopAsync()
{
if (_defaultEndpointSocket != null)
if (_listener != null)
{
_defaultEndpointSocket.ConnectionReceived -= AcceptDefaultEndpointConnectionsAsync;
_listener.ConnectionReceived -= AcceptDefaultEndpointConnectionsAsync;
}

_defaultEndpointSocket?.Dispose();
_defaultEndpointSocket = null;
_listener?.Dispose();
_listener = null;

return Task.FromResult(0);
}
@@ -71,7 +72,7 @@ namespace MQTTnet.Implementations
{
try
{
var clientAdapter = new MqttChannelAdapter(new MqttTcpChannel(args.Socket), new MqttPacketSerializer(), _logger);
var clientAdapter = new MqttChannelAdapter(new MqttTcpChannel(args.Socket, _options), new MqttPacketSerializer(), _logger);
ClientAccepted?.Invoke(this, new MqttServerAdapterClientAcceptedEventArgs(clientAdapter));
}
catch (Exception exception)

Frameworks/MQTTnet.NetStandard/Implementations/MqttTcpServerAdapter.cs → Source/MQTTnet/Implementations/MqttTcpServerAdapter.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Implementations/MqttTcpServerListener.cs → Source/MQTTnet/Implementations/MqttTcpServerListener.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Implementations/MqttWebSocketChannel.cs → Source/MQTTnet/Implementations/MqttWebSocketChannel.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Internal/AsyncAutoResetEvent.cs → Source/MQTTnet/Internal/AsyncAutoResetEvent.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Internal/AsyncLock.cs → Source/MQTTnet/Internal/AsyncLock.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Internal/ExceptionHelper.cs → Source/MQTTnet/Internal/ExceptionHelper.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Internal/MqttApplicationMessageExtensions.cs → Source/MQTTnet/Internal/MqttApplicationMessageExtensions.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Internal/TaskExtensions.cs → Source/MQTTnet/Internal/TaskExtensions.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Internal/TestMqttChannel.cs → Source/MQTTnet/Internal/TestMqttChannel.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/MQTTnet.csproj → Source/MQTTnet/MQTTnet.csproj Прегледај датотеку


Frameworks/MQTTnet.NetStandard/MqttApplicationMessage.cs → Source/MQTTnet/MqttApplicationMessage.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/MqttApplicationMessageBuilder.cs → Source/MQTTnet/MqttApplicationMessageBuilder.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/MqttApplicationMessageExtensions.cs → Source/MQTTnet/MqttApplicationMessageExtensions.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/MqttApplicationMessageReceivedEventArgs.cs → Source/MQTTnet/MqttApplicationMessageReceivedEventArgs.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/MqttFactory.cs → Source/MQTTnet/MqttFactory.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Packets/IMqttPacketWithIdentifier.cs → Source/MQTTnet/Packets/IMqttPacketWithIdentifier.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Packets/MqttBasePacket.cs → Source/MQTTnet/Packets/MqttBasePacket.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Packets/MqttBasePublishPacket.cs → Source/MQTTnet/Packets/MqttBasePublishPacket.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Packets/MqttConnAckPacket.cs → Source/MQTTnet/Packets/MqttConnAckPacket.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Packets/MqttConnectPacket.cs → Source/MQTTnet/Packets/MqttConnectPacket.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Packets/MqttDisconnectPacket.cs → Source/MQTTnet/Packets/MqttDisconnectPacket.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Packets/MqttPingReqPacket.cs → Source/MQTTnet/Packets/MqttPingReqPacket.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Packets/MqttPingRespPacket.cs → Source/MQTTnet/Packets/MqttPingRespPacket.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Packets/MqttPubAckPacket.cs → Source/MQTTnet/Packets/MqttPubAckPacket.cs Прегледај датотеку


Frameworks/MQTTnet.NetStandard/Packets/MqttPubCompPacket.cs → Source/MQTTnet/Packets/MqttPubCompPacket.cs Прегледај датотеку


Неке датотеке нису приказане због велике количине промена

Loading…
Откажи
Сачувај