Fix ASP.NET Core breaking changes

This commit is contained in:
Christian Kratky
2017-11-23 22:34:16 +01:00
parent e54b4f58df
commit 1bcf7ec29c
3 changed files with 16 additions and 10 deletions
+3 -1
View File
@@ -7,6 +7,7 @@ using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.FileProviders;
using MQTTnet.AspNetCore;
using MQTTnet.Core;
using MQTTnet.Core.Server;
namespace MQTTnet.TestApp.AspNetCore2
{
@@ -16,7 +17,8 @@ namespace MQTTnet.TestApp.AspNetCore2
public void ConfigureServices(IServiceCollection services)
{
services.AddHostedMqttServer();
var mqttServerOptions = new MqttServerOptionsBuilder().Build();
services.AddHostedMqttServer(mqttServerOptions);
}
// In class _Startup_ of the ASP.NET Core 2.0 project.