浏览代码

downgrade dependencies to 2.0

release/3.x.x
JanEggers 6 年前
父节点
当前提交
d573423372
共有 2 个文件被更改,包括 6 次插入3 次删除
  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 查看文件

@@ -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 查看文件

@@ -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();
}


正在加载...
取消
保存