From 44c07c20344a7f7221913c31c7ae6e674b7a8c90 Mon Sep 17 00:00:00 2001 From: Christian Kratky Date: Thu, 14 Dec 2017 13:12:18 +0100 Subject: [PATCH] Fix broken ASP.NET Core integration. --- Frameworks/MQTTnet.AspnetCore/MqttHostedServer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Frameworks/MQTTnet.AspnetCore/MqttHostedServer.cs b/Frameworks/MQTTnet.AspnetCore/MqttHostedServer.cs index 7c7d304..8e6761a 100644 --- a/Frameworks/MQTTnet.AspnetCore/MqttHostedServer.cs +++ b/Frameworks/MQTTnet.AspnetCore/MqttHostedServer.cs @@ -11,9 +11,9 @@ namespace MQTTnet.AspNetCore { public class MqttHostedServer : MqttServer, IHostedService { - private readonly MqttServerOptions _options; + private readonly IMqttServerOptions _options; - public MqttHostedServer(MqttServerOptions options, IEnumerable adapters, IMqttNetLogger logger) : base(adapters, logger) + public MqttHostedServer(IMqttServerOptions options, IEnumerable adapters, IMqttNetLogger logger) : base(adapters, logger) { _options = options ?? throw new ArgumentNullException(nameof(options)); }