We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfc09e3 commit f0546c0Copy full SHA for f0546c0
Source/MQTTnet.AspnetCore/MqttHostedServer.cs
@@ -27,10 +27,8 @@ IMqttNetLogger logger
27
}
28
29
public MqttServer MqttServer { get; }
30
- protected override async Task ExecuteAsync(CancellationToken stoppingToken)
31
- {
32
- await MqttServer.StartAsync();
33
- }
+ protected override Task ExecuteAsync(CancellationToken stoppingToken)
+ => MqttServer.StartAsync();
34
public override async Task StopAsync(CancellationToken cancellationToken)
35
{
36
await MqttServer.StopAsync(_mqttFactory.CreateMqttServerStopOptionsBuilder().Build());
0 commit comments