From d010167dff834b68592f54bcda0e4f12ac1c8f5a Mon Sep 17 00:00:00 2001 From: ThomasFransolet Date: Wed, 27 Mar 2019 22:14:37 +0100 Subject: [PATCH] WebService Serveur (API) : MQTT Publish Test Suceeded --- MyCore/Controllers/MQTTController.cs | 48 +++ MyCore/Controllers/ValuesController.cs | 3 + MyCore/MyCore.csproj | 1 + .../bin/Debug/netcoreapp2.1/MyCore.deps.json | 135 ++++++- .../MyCore.csproj.FileListAbsolute.txt | 2 +- MyCore/obj/project.assets.json | 348 ++++++++++++++++++ 6 files changed, 535 insertions(+), 2 deletions(-) create mode 100644 MyCore/Controllers/MQTTController.cs diff --git a/MyCore/Controllers/MQTTController.cs b/MyCore/Controllers/MQTTController.cs new file mode 100644 index 0000000..5ba1484 --- /dev/null +++ b/MyCore/Controllers/MQTTController.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; +using MQTTnet; +using MQTTnet.Client; + +namespace MyCore.Controllers +{ + [Authorize(Roles = "Admin")] + [Route("api/mqtt")] + [ApiController] + public class MQTTController : Controller + { + /// + /// It's a mqtt publish test ! :) + /// + [AllowAnonymous] + [HttpGet] + public void GetToPublishMqtt() + { + Client_Publish(); + } + + public async Task Client_Publish() + { + var server = new MqttFactory().CreateMqttServer(); + + try + { + var client1 = new MqttFactory().CreateMqttClient(); + await client1.ConnectAsync(new MqttClientOptionsBuilder().WithTcpServer("192.168.0.8").Build()); + var message = new MqttApplicationMessageBuilder().WithPayload("It's a test").WithTopic("IpAddress").WithRetainFlag().Build(); + await client1.PublishAsync(message); + + await Task.Delay(500); + + } + finally + { + await server.StopAsync(); + } + } + } +} \ No newline at end of file diff --git a/MyCore/Controllers/ValuesController.cs b/MyCore/Controllers/ValuesController.cs index df48bb5..f4300a7 100644 --- a/MyCore/Controllers/ValuesController.cs +++ b/MyCore/Controllers/ValuesController.cs @@ -4,6 +4,9 @@ using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; +using MQTTnet; +using MQTTnet.Client; +using MQTTnet.Server; namespace MyCore.Controllers { diff --git a/MyCore/MyCore.csproj b/MyCore/MyCore.csproj index 181954b..2a5b847 100644 --- a/MyCore/MyCore.csproj +++ b/MyCore/MyCore.csproj @@ -23,6 +23,7 @@ + diff --git a/MyCore/bin/Debug/netcoreapp2.1/MyCore.deps.json b/MyCore/bin/Debug/netcoreapp2.1/MyCore.deps.json index 0357fb0..51edaf0 100644 --- a/MyCore/bin/Debug/netcoreapp2.1/MyCore.deps.json +++ b/MyCore/bin/Debug/netcoreapp2.1/MyCore.deps.json @@ -1,7 +1,7 @@ { "runtimeTarget": { "name": ".NETCoreApp,Version=v2.1", - "signature": "9afdf72ecfdd80c9951bc09370f143395c2dd5ff" + "signature": "e9e277718dca4942134387f40abf615b4b7fc6e7" }, "compilationOptions": { "defines": [ @@ -25,6 +25,7 @@ "MyCore/1.0.0": { "dependencies": { "AspNetCore.Security.Jwt": "1.6.0", + "MQTTnet": "2.8.5", "Microsoft.AspNetCore.App": "2.1.1", "Microsoft.AspNetCore.Authentication.JwtBearer": "2.1.2", "Microsoft.AspNetCore.Razor.Design": "2.1.2", @@ -578,6 +579,23 @@ "lib/netstandard1.5/MongoDB.Driver.Core.dll": {} } }, + "MQTTnet/2.8.5": { + "dependencies": { + "NETStandard.Library": "2.0.3", + "System.Net.Security": "4.3.2", + "System.Net.WebSockets": "4.3.0", + "System.Net.WebSockets.Client": "4.3.2" + }, + "runtime": { + "lib/netstandard2.0/MQTTnet.dll": { + "assemblyVersion": "2.8.5.0", + "fileVersion": "2.8.5.0" + } + }, + "compile": { + "lib/netstandard2.0/MQTTnet.dll": {} + } + }, "NETStandard.Library/2.0.3": { "dependencies": { "Microsoft.NETCore.Platforms": "2.1.0" @@ -1088,6 +1106,72 @@ } } }, + "System.Net.Sockets/4.3.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "2.1.0", + "Microsoft.NETCore.Targets": "2.1.0", + "System.IO": "4.3.0", + "System.Net.Primitives": "4.3.0", + "System.Runtime": "4.3.0", + "System.Threading.Tasks": "4.3.0" + } + }, + "System.Net.WebHeaderCollection/4.3.0": { + "dependencies": { + "System.Collections": "4.3.0", + "System.Resources.ResourceManager": "4.3.0", + "System.Runtime": "4.3.0", + "System.Runtime.Extensions": "4.3.0" + } + }, + "System.Net.WebSockets/4.3.0": { + "dependencies": { + "Microsoft.Win32.Primitives": "4.3.0", + "System.Resources.ResourceManager": "4.3.0", + "System.Runtime": "4.3.0", + "System.Threading.Tasks": "4.3.0" + } + }, + "System.Net.WebSockets.Client/4.3.2": { + "dependencies": { + "Microsoft.NETCore.Platforms": "2.1.0", + "Microsoft.Win32.Primitives": "4.3.0", + "System.Collections": "4.3.0", + "System.Diagnostics.Debug": "4.3.0", + "System.Diagnostics.Tracing": "4.3.0", + "System.Globalization": "4.3.0", + "System.IO": "4.3.0", + "System.Net.NameResolution": "4.3.0", + "System.Net.Primitives": "4.3.0", + "System.Net.Security": "4.3.2", + "System.Net.Sockets": "4.3.0", + "System.Net.WebHeaderCollection": "4.3.0", + "System.Net.WebSockets": "4.3.0", + "System.Resources.ResourceManager": "4.3.0", + "System.Runtime": "4.3.0", + "System.Runtime.Extensions": "4.3.0", + "System.Runtime.Handles": "4.3.0", + "System.Runtime.InteropServices": "4.3.0", + "System.Security.Cryptography.Algorithms": "4.3.0", + "System.Security.Cryptography.Primitives": "4.3.0", + "System.Security.Cryptography.X509Certificates": "4.3.0", + "System.Text.Encoding": "4.3.0", + "System.Text.Encoding.Extensions": "4.3.0", + "System.Threading": "4.3.0", + "System.Threading.Tasks": "4.3.0", + "System.Threading.Timer": "4.3.0" + }, + "runtimeTargets": { + "runtime/unix/lib/_._": { + "rid": "unix", + "assetType": "runtime" + }, + "runtime/win/lib/_._": { + "rid": "win", + "assetType": "runtime" + } + } + }, "System.Private.DataContractSerialization/4.3.0": { "dependencies": { "System.Collections": "4.3.0", @@ -1205,6 +1289,13 @@ "System.Runtime.Handles": "4.3.0" } }, + "System.Threading.Timer/4.3.0": { + "dependencies": { + "Microsoft.NETCore.Platforms": "2.1.0", + "Microsoft.NETCore.Targets": "2.1.0", + "System.Runtime": "4.3.0" + } + }, "System.Xml.XmlSerializer/4.3.0": { "dependencies": { "System.Collections": "4.3.0", @@ -4167,6 +4258,13 @@ "path": "mongodb.driver.core/2.8.0", "hashPath": "mongodb.driver.core.2.8.0.nupkg.sha512" }, + "MQTTnet/2.8.5": { + "type": "package", + "serviceable": true, + "sha512": "sha512-scNRIWxjuceFixHkwUkofWw354Az/95T8SW3eAk+edH2caMzihDbzdl3IWQf/mSiEB+5pVnOEWMNMnAZ8d4YHA==", + "path": "mqttnet/2.8.5", + "hashPath": "mqttnet.2.8.5.nupkg.sha512" + }, "NETStandard.Library/2.0.3": { "type": "package", "serviceable": true, @@ -4405,6 +4503,34 @@ "path": "system.net.security/4.3.2", "hashPath": "system.net.security.4.3.2.nupkg.sha512" }, + "System.Net.Sockets/4.3.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-m6icV6TqQOAdgt5N/9I5KNpjom/5NFtkmGseEH+AK/hny8XrytLH3+b5M8zL/Ycg3fhIocFpUMyl/wpFnVRvdw==", + "path": "system.net.sockets/4.3.0", + "hashPath": "system.net.sockets.4.3.0.nupkg.sha512" + }, + "System.Net.WebHeaderCollection/4.3.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-/aQLXlO/M2SjvKjMyX15IRHK/BJgb4qE1FZGZPjnFxhE7jHwduu65TMuVsyKxUOhYQg/2cr9zpm0olhD1icjTw==", + "path": "system.net.webheadercollection/4.3.0", + "hashPath": "system.net.webheadercollection.4.3.0.nupkg.sha512" + }, + "System.Net.WebSockets/4.3.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-K92jUrnqIfzBr8IssbulQetz8f2gAs2XC2jyVWbUvr+804YWv6LIksBIz84WV7HStpluw3RQTcHxd3+C5zIewA==", + "path": "system.net.websockets/4.3.0", + "hashPath": "system.net.websockets.4.3.0.nupkg.sha512" + }, + "System.Net.WebSockets.Client/4.3.2": { + "type": "package", + "serviceable": true, + "sha512": "sha512-wmWSeBJ+7j7cWyTInHZ5OXzRuKh+2LDZ9psG1UYw1BzNZcbYBxe7KBMaDLSIOD1wn1uFDLRGG4+vLqKj7n/Z+w==", + "path": "system.net.websockets.client/4.3.2", + "hashPath": "system.net.websockets.client.4.3.2.nupkg.sha512" + }, "System.Private.DataContractSerialization/4.3.0": { "type": "package", "serviceable": true, @@ -4468,6 +4594,13 @@ "path": "system.threading.threadpool/4.3.0", "hashPath": "system.threading.threadpool.4.3.0.nupkg.sha512" }, + "System.Threading.Timer/4.3.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-Z6YfyYTCg7lOZjJzBjONJTFKGN9/NIYKSxhU5GRd+DTwHSZyvWp1xuI5aR+dLg+ayyC5Xv57KiY4oJ0tMO89fQ==", + "path": "system.threading.timer/4.3.0", + "hashPath": "system.threading.timer.4.3.0.nupkg.sha512" + }, "System.Xml.XmlSerializer/4.3.0": { "type": "package", "serviceable": true, diff --git a/MyCore/obj/Debug/netcoreapp2.1/MyCore.csproj.FileListAbsolute.txt b/MyCore/obj/Debug/netcoreapp2.1/MyCore.csproj.FileListAbsolute.txt index 9532a84..1b1821f 100644 --- a/MyCore/obj/Debug/netcoreapp2.1/MyCore.csproj.FileListAbsolute.txt +++ b/MyCore/obj/Debug/netcoreapp2.1/MyCore.csproj.FileListAbsolute.txt @@ -29,6 +29,6 @@ C:\Users\thoma\OneDrive\Documents\Travail\MyCore\MyCore\obj\Debug\netcoreapp2.1\ C:\Users\thoma\OneDrive\Documents\Travail\MyCore\MyCore\obj\Debug\netcoreapp2.1\MyCore.xml C:\Users\thoma\OneDrive\Documents\Travail\MyCore\MyCore\bin\Debug\netcoreapp2.1\MyCore.pdb C:\Users\thoma\OneDrive\Documents\Travail\MyCore\MyCore\bin\Debug\netcoreapp2.1\MyCore.xml -C:\Users\thoma\OneDrive\Documents\Travail\MyCore\MyCore\obj\Debug\netcoreapp2.1\UserSecretsAssemblyInfo.cs C:\Users\thoma\OneDrive\Documents\Travail\MyCore\MyCore\obj\Debug\netcoreapp2.1\MyCore.dll C:\Users\thoma\OneDrive\Documents\Travail\MyCore\MyCore\obj\Debug\netcoreapp2.1\MyCore.pdb +C:\Users\thoma\OneDrive\Documents\Travail\MyCore\MyCore\obj\Debug\netcoreapp2.1\UserSecretsAssemblyInfo.cs diff --git a/MyCore/obj/project.assets.json b/MyCore/obj/project.assets.json index 28cd2bd..1e6adaf 100644 --- a/MyCore/obj/project.assets.json +++ b/MyCore/obj/project.assets.json @@ -2866,6 +2866,21 @@ "lib/netstandard1.5/MongoDB.Driver.Core.dll": {} } }, + "MQTTnet/2.8.5": { + "type": "package", + "dependencies": { + "NETStandard.Library": "2.0.0", + "System.Net.Security": "4.3.2", + "System.Net.WebSockets": "4.3.0", + "System.Net.WebSockets.Client": "4.3.2" + }, + "compile": { + "lib/netstandard2.0/MQTTnet.dll": {} + }, + "runtime": { + "lib/netstandard2.0/MQTTnet.dll": {} + } + }, "NETStandard.Library/2.0.3": { "type": "package", "dependencies": { @@ -4114,6 +4129,94 @@ } } }, + "System.Net.Sockets/4.3.0": { + "type": "package", + "dependencies": { + "Microsoft.NETCore.Platforms": "1.1.0", + "Microsoft.NETCore.Targets": "1.1.0", + "System.IO": "4.3.0", + "System.Net.Primitives": "4.3.0", + "System.Runtime": "4.3.0", + "System.Threading.Tasks": "4.3.0" + }, + "compile": { + "ref/netstandard1.3/_._": {} + } + }, + "System.Net.WebHeaderCollection/4.3.0": { + "type": "package", + "dependencies": { + "System.Collections": "4.3.0", + "System.Resources.ResourceManager": "4.3.0", + "System.Runtime": "4.3.0", + "System.Runtime.Extensions": "4.3.0" + }, + "compile": { + "ref/netstandard1.3/_._": {} + }, + "runtime": { + "lib/netstandard1.3/System.Net.WebHeaderCollection.dll": {} + } + }, + "System.Net.WebSockets/4.3.0": { + "type": "package", + "dependencies": { + "Microsoft.Win32.Primitives": "4.3.0", + "System.Resources.ResourceManager": "4.3.0", + "System.Runtime": "4.3.0", + "System.Threading.Tasks": "4.3.0" + }, + "compile": { + "ref/netstandard1.3/System.Net.WebSockets.dll": {} + }, + "runtime": { + "lib/netstandard1.3/System.Net.WebSockets.dll": {} + } + }, + "System.Net.WebSockets.Client/4.3.2": { + "type": "package", + "dependencies": { + "Microsoft.NETCore.Platforms": "1.1.0", + "Microsoft.Win32.Primitives": "4.3.0", + "System.Collections": "4.3.0", + "System.Diagnostics.Debug": "4.3.0", + "System.Diagnostics.Tracing": "4.3.0", + "System.Globalization": "4.3.0", + "System.IO": "4.3.0", + "System.Net.NameResolution": "4.3.0", + "System.Net.Primitives": "4.3.0", + "System.Net.Security": "4.3.0", + "System.Net.Sockets": "4.3.0", + "System.Net.WebHeaderCollection": "4.3.0", + "System.Net.WebSockets": "4.3.0", + "System.Resources.ResourceManager": "4.3.0", + "System.Runtime": "4.3.0", + "System.Runtime.Extensions": "4.3.0", + "System.Runtime.Handles": "4.3.0", + "System.Runtime.InteropServices": "4.3.0", + "System.Security.Cryptography.Algorithms": "4.3.0", + "System.Security.Cryptography.Primitives": "4.3.0", + "System.Security.Cryptography.X509Certificates": "4.3.0", + "System.Text.Encoding": "4.3.0", + "System.Text.Encoding.Extensions": "4.3.0", + "System.Threading": "4.3.0", + "System.Threading.Tasks": "4.3.0", + "System.Threading.Timer": "4.3.0" + }, + "compile": { + "ref/netstandard1.3/System.Net.WebSockets.Client.dll": {} + }, + "runtimeTargets": { + "runtimes/unix/lib/netstandard1.3/System.Net.WebSockets.Client.dll": { + "assetType": "runtime", + "rid": "unix" + }, + "runtimes/win/lib/netstandard1.3/System.Net.WebSockets.Client.dll": { + "assetType": "runtime", + "rid": "win" + } + } + }, "System.Net.WebSockets.WebSocketProtocol/4.5.1": { "type": "package", "compile": { @@ -4934,6 +5037,17 @@ "lib/netstandard1.3/System.Threading.ThreadPool.dll": {} } }, + "System.Threading.Timer/4.3.0": { + "type": "package", + "dependencies": { + "Microsoft.NETCore.Platforms": "1.1.0", + "Microsoft.NETCore.Targets": "1.1.0", + "System.Runtime": "4.3.0" + }, + "compile": { + "ref/netstandard1.2/_._": {} + } + }, "System.ValueTuple/4.3.0": { "type": "package", "dependencies": { @@ -8211,6 +8325,34 @@ "mongodb.driver.core.nuspec" ] }, + "MQTTnet/2.8.5": { + "sha512": "scNRIWxjuceFixHkwUkofWw354Az/95T8SW3eAk+edH2caMzihDbzdl3IWQf/mSiEB+5pVnOEWMNMnAZ8d4YHA==", + "type": "package", + "path": "mqttnet/2.8.5", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/net452/MQTTnet.dll", + "lib/net461/MQTTnet.deps.json", + "lib/net461/MQTTnet.dll", + "lib/net462/MQTTnet.deps.json", + "lib/net462/MQTTnet.dll", + "lib/net470/MQTTnet.deps.json", + "lib/net470/MQTTnet.dll", + "lib/net471/MQTTnet.deps.json", + "lib/net471/MQTTnet.dll", + "lib/net472/MQTTnet.deps.json", + "lib/net472/MQTTnet.dll", + "lib/netstandard1.3/MQTTnet.deps.json", + "lib/netstandard1.3/MQTTnet.dll", + "lib/netstandard2.0/MQTTnet.deps.json", + "lib/netstandard2.0/MQTTnet.dll", + "lib/uap10.0/MQTTnet.dll", + "lib/uap10.0/MQTTnet.pri", + "mqttnet.2.8.5.nupkg.sha512", + "mqttnet.nuspec" + ] + }, "NETStandard.Library/2.0.3": { "sha512": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==", "type": "package", @@ -11058,6 +11200,153 @@ "system.net.security.nuspec" ] }, + "System.Net.Sockets/4.3.0": { + "sha512": "m6icV6TqQOAdgt5N/9I5KNpjom/5NFtkmGseEH+AK/hny8XrytLH3+b5M8zL/Ycg3fhIocFpUMyl/wpFnVRvdw==", + "type": "package", + "path": "system.net.sockets/4.3.0", + "files": [ + ".nupkg.metadata", + "ThirdPartyNotices.txt", + "dotnet_library_license.txt", + "lib/MonoAndroid10/_._", + "lib/MonoTouch10/_._", + "lib/net46/System.Net.Sockets.dll", + "lib/xamarinios10/_._", + "lib/xamarinmac20/_._", + "lib/xamarintvos10/_._", + "lib/xamarinwatchos10/_._", + "ref/MonoAndroid10/_._", + "ref/MonoTouch10/_._", + "ref/net46/System.Net.Sockets.dll", + "ref/netstandard1.3/System.Net.Sockets.dll", + "ref/netstandard1.3/System.Net.Sockets.xml", + "ref/netstandard1.3/de/System.Net.Sockets.xml", + "ref/netstandard1.3/es/System.Net.Sockets.xml", + "ref/netstandard1.3/fr/System.Net.Sockets.xml", + "ref/netstandard1.3/it/System.Net.Sockets.xml", + "ref/netstandard1.3/ja/System.Net.Sockets.xml", + "ref/netstandard1.3/ko/System.Net.Sockets.xml", + "ref/netstandard1.3/ru/System.Net.Sockets.xml", + "ref/netstandard1.3/zh-hans/System.Net.Sockets.xml", + "ref/netstandard1.3/zh-hant/System.Net.Sockets.xml", + "ref/xamarinios10/_._", + "ref/xamarinmac20/_._", + "ref/xamarintvos10/_._", + "ref/xamarinwatchos10/_._", + "system.net.sockets.4.3.0.nupkg.sha512", + "system.net.sockets.nuspec" + ] + }, + "System.Net.WebHeaderCollection/4.3.0": { + "sha512": "/aQLXlO/M2SjvKjMyX15IRHK/BJgb4qE1FZGZPjnFxhE7jHwduu65TMuVsyKxUOhYQg/2cr9zpm0olhD1icjTw==", + "type": "package", + "path": "system.net.webheadercollection/4.3.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "ThirdPartyNotices.txt", + "dotnet_library_license.txt", + "lib/MonoAndroid10/_._", + "lib/MonoTouch10/_._", + "lib/net46/_._", + "lib/netstandard1.3/System.Net.WebHeaderCollection.dll", + "lib/xamarinios10/_._", + "lib/xamarinmac20/_._", + "lib/xamarintvos10/_._", + "lib/xamarinwatchos10/_._", + "ref/MonoAndroid10/_._", + "ref/MonoTouch10/_._", + "ref/net46/_._", + "ref/netstandard1.3/System.Net.WebHeaderCollection.dll", + "ref/netstandard1.3/System.Net.WebHeaderCollection.xml", + "ref/netstandard1.3/de/System.Net.WebHeaderCollection.xml", + "ref/netstandard1.3/es/System.Net.WebHeaderCollection.xml", + "ref/netstandard1.3/fr/System.Net.WebHeaderCollection.xml", + "ref/netstandard1.3/it/System.Net.WebHeaderCollection.xml", + "ref/netstandard1.3/ja/System.Net.WebHeaderCollection.xml", + "ref/netstandard1.3/ko/System.Net.WebHeaderCollection.xml", + "ref/netstandard1.3/ru/System.Net.WebHeaderCollection.xml", + "ref/netstandard1.3/zh-hans/System.Net.WebHeaderCollection.xml", + "ref/netstandard1.3/zh-hant/System.Net.WebHeaderCollection.xml", + "ref/xamarinios10/_._", + "ref/xamarinmac20/_._", + "ref/xamarintvos10/_._", + "ref/xamarinwatchos10/_._", + "system.net.webheadercollection.4.3.0.nupkg.sha512", + "system.net.webheadercollection.nuspec" + ] + }, + "System.Net.WebSockets/4.3.0": { + "sha512": "K92jUrnqIfzBr8IssbulQetz8f2gAs2XC2jyVWbUvr+804YWv6LIksBIz84WV7HStpluw3RQTcHxd3+C5zIewA==", + "type": "package", + "path": "system.net.websockets/4.3.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "ThirdPartyNotices.txt", + "dotnet_library_license.txt", + "lib/MonoAndroid10/_._", + "lib/MonoTouch10/_._", + "lib/net46/System.Net.WebSockets.dll", + "lib/netstandard1.3/System.Net.WebSockets.dll", + "lib/xamarinios10/_._", + "lib/xamarinmac20/_._", + "lib/xamarintvos10/_._", + "lib/xamarinwatchos10/_._", + "ref/MonoAndroid10/_._", + "ref/MonoTouch10/_._", + "ref/net46/System.Net.WebSockets.dll", + "ref/netstandard1.3/System.Net.WebSockets.dll", + "ref/netstandard1.3/System.Net.WebSockets.xml", + "ref/netstandard1.3/de/System.Net.WebSockets.xml", + "ref/netstandard1.3/es/System.Net.WebSockets.xml", + "ref/netstandard1.3/fr/System.Net.WebSockets.xml", + "ref/netstandard1.3/it/System.Net.WebSockets.xml", + "ref/netstandard1.3/ja/System.Net.WebSockets.xml", + "ref/netstandard1.3/ko/System.Net.WebSockets.xml", + "ref/netstandard1.3/ru/System.Net.WebSockets.xml", + "ref/netstandard1.3/zh-hans/System.Net.WebSockets.xml", + "ref/netstandard1.3/zh-hant/System.Net.WebSockets.xml", + "ref/xamarinios10/_._", + "ref/xamarinmac20/_._", + "ref/xamarintvos10/_._", + "ref/xamarinwatchos10/_._", + "system.net.websockets.4.3.0.nupkg.sha512", + "system.net.websockets.nuspec" + ] + }, + "System.Net.WebSockets.Client/4.3.2": { + "sha512": "wmWSeBJ+7j7cWyTInHZ5OXzRuKh+2LDZ9psG1UYw1BzNZcbYBxe7KBMaDLSIOD1wn1uFDLRGG4+vLqKj7n/Z+w==", + "type": "package", + "path": "system.net.websockets.client/4.3.2", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "ThirdPartyNotices.txt", + "dotnet_library_license.txt", + "lib/MonoAndroid10/_._", + "lib/MonoTouch10/_._", + "lib/net46/System.Net.WebSockets.Client.dll", + "lib/xamarinios10/_._", + "lib/xamarinmac20/_._", + "lib/xamarintvos10/_._", + "lib/xamarinwatchos10/_._", + "ref/MonoAndroid10/_._", + "ref/MonoTouch10/_._", + "ref/net46/System.Net.WebSockets.Client.dll", + "ref/netstandard1.3/System.Net.WebSockets.Client.dll", + "ref/xamarinios10/_._", + "ref/xamarinmac20/_._", + "ref/xamarintvos10/_._", + "ref/xamarinwatchos10/_._", + "runtimes/unix/lib/netstandard1.3/System.Net.WebSockets.Client.dll", + "runtimes/win/lib/net46/System.Net.WebSockets.Client.dll", + "runtimes/win/lib/netcore50/System.Net.WebSockets.Client.dll", + "runtimes/win/lib/netstandard1.3/System.Net.WebSockets.Client.dll", + "system.net.websockets.client.4.3.2.nupkg.sha512", + "system.net.websockets.client.nuspec" + ] + }, "System.Net.WebSockets.WebSocketProtocol/4.5.1": { "sha512": "ME9tj5H/VM0SJW1Qq9zGcUxILhR+OBCNQEmEocoVxRwh5Y/H+Azob2dCP/7Tfk1ag7PmKZ1f5Iqv1ptgDYTHlQ==", "type": "package", @@ -13453,6 +13742,60 @@ "system.threading.threadpool.nuspec" ] }, + "System.Threading.Timer/4.3.0": { + "sha512": "Z6YfyYTCg7lOZjJzBjONJTFKGN9/NIYKSxhU5GRd+DTwHSZyvWp1xuI5aR+dLg+ayyC5Xv57KiY4oJ0tMO89fQ==", + "type": "package", + "path": "system.threading.timer/4.3.0", + "files": [ + ".nupkg.metadata", + "ThirdPartyNotices.txt", + "dotnet_library_license.txt", + "lib/MonoAndroid10/_._", + "lib/MonoTouch10/_._", + "lib/net451/_._", + "lib/portable-net451+win81+wpa81/_._", + "lib/win81/_._", + "lib/wpa81/_._", + "lib/xamarinios10/_._", + "lib/xamarinmac20/_._", + "lib/xamarintvos10/_._", + "lib/xamarinwatchos10/_._", + "ref/MonoAndroid10/_._", + "ref/MonoTouch10/_._", + "ref/net451/_._", + "ref/netcore50/System.Threading.Timer.dll", + "ref/netcore50/System.Threading.Timer.xml", + "ref/netcore50/de/System.Threading.Timer.xml", + "ref/netcore50/es/System.Threading.Timer.xml", + "ref/netcore50/fr/System.Threading.Timer.xml", + "ref/netcore50/it/System.Threading.Timer.xml", + "ref/netcore50/ja/System.Threading.Timer.xml", + "ref/netcore50/ko/System.Threading.Timer.xml", + "ref/netcore50/ru/System.Threading.Timer.xml", + "ref/netcore50/zh-hans/System.Threading.Timer.xml", + "ref/netcore50/zh-hant/System.Threading.Timer.xml", + "ref/netstandard1.2/System.Threading.Timer.dll", + "ref/netstandard1.2/System.Threading.Timer.xml", + "ref/netstandard1.2/de/System.Threading.Timer.xml", + "ref/netstandard1.2/es/System.Threading.Timer.xml", + "ref/netstandard1.2/fr/System.Threading.Timer.xml", + "ref/netstandard1.2/it/System.Threading.Timer.xml", + "ref/netstandard1.2/ja/System.Threading.Timer.xml", + "ref/netstandard1.2/ko/System.Threading.Timer.xml", + "ref/netstandard1.2/ru/System.Threading.Timer.xml", + "ref/netstandard1.2/zh-hans/System.Threading.Timer.xml", + "ref/netstandard1.2/zh-hant/System.Threading.Timer.xml", + "ref/portable-net451+win81+wpa81/_._", + "ref/win81/_._", + "ref/wpa81/_._", + "ref/xamarinios10/_._", + "ref/xamarinmac20/_._", + "ref/xamarintvos10/_._", + "ref/xamarinwatchos10/_._", + "system.threading.timer.4.3.0.nupkg.sha512", + "system.threading.timer.nuspec" + ] + }, "System.ValueTuple/4.3.0": { "sha512": "cNLEvBX3d6MMQRZe3SMFNukVbitDAEpVZO17qa0/2FHxZ7Y7PpFRpr6m2615XYM/tYYYf0B+WyHNujqIw8Luwg==", "type": "package", @@ -13797,6 +14140,7 @@ "projectFileDependencyGroups": { ".NETCoreApp,Version=v2.1": [ "AspNetCore.Security.Jwt >= 1.6.0", + "MQTTnet >= 2.8.5", "Microsoft.AspNetCore.App >= 2.1.1", "Microsoft.AspNetCore.Authentication.JwtBearer >= 2.1.2", "Microsoft.AspNetCore.Razor.Design >= 2.1.2", @@ -13852,6 +14196,10 @@ "target": "Package", "version": "[1.6.0, )" }, + "MQTTnet": { + "target": "Package", + "version": "[2.8.5, )" + }, "Microsoft.AspNetCore.App": { "suppressParent": "All", "target": "Package",