Browse Source

downgrade dependencies to 2.0

release/3.x.x
JanEggers 6 years ago
parent
commit
d573423372
2 changed files with 6 additions and 3 deletions
  1. +2
    -2
      Source/MQTTnet.AspnetCore/MQTTnet.AspNetCore.csproj
  2. +4
    -1
      Tests/MQTTnet.TestApp.AspNetCore2/Program.cs

+ 2
- 2
Source/MQTTnet.AspnetCore/MQTTnet.AspNetCore.csproj View File

@@ -18,8 +18,8 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Connections.Abstractions" Version="2.1.0" />
<PackageReference Include="Microsoft.AspNetCore.WebSockets" Version="2.1.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="2.1.0" />
<PackageReference Include="Microsoft.AspNetCore.WebSockets" Version="2.0.1" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="2.0.1" />
</ItemGroup>

<ItemGroup>


+ 4
- 1
Tests/MQTTnet.TestApp.AspNetCore2/Program.cs View File

@@ -13,7 +13,10 @@ namespace MQTTnet.TestApp.AspNetCore2

private static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseKestrel(o => o.ListenAnyIP(1883, l => l.UseMqtt()))
.UseKestrel(o => {
o.ListenAnyIP(1883, l => l.UseMqtt());
o.ListenAnyIP(5000); // default http pipeline
})
.UseStartup<Startup>()
.Build();
}


Loading…
Cancel
Save