瀏覽代碼

Fix broken ASP.NET Core integration.

release/3.x.x
Christian Kratky 7 年之前
父節點
當前提交
44c07c2034
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      Frameworks/MQTTnet.AspnetCore/MqttHostedServer.cs

+ 2
- 2
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<IMqttServerAdapter> adapters, IMqttNetLogger logger) : base(adapters, logger)
public MqttHostedServer(IMqttServerOptions options, IEnumerable<IMqttServerAdapter> adapters, IMqttNetLogger logger) : base(adapters, logger)
{
_options = options ?? throw new ArgumentNullException(nameof(options));
}


Loading…
取消
儲存