Skip to content

Commit 672435c

Browse files
committed
minor refactoring
1 parent 4eb737f commit 672435c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Source/MQTTnet.AspnetCore/MqttHostedServer.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ IMqttNetLogger logger
2727
}
2828

2929
public MqttServer MqttServer { get; }
30-
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
31-
{
32-
await MqttServer.StartAsync();
33-
}
30+
protected override Task ExecuteAsync(CancellationToken stoppingToken)
31+
=> MqttServer.StartAsync();
3432
public override async Task StopAsync(CancellationToken cancellationToken)
3533
{
3634
await MqttServer.StopAsync(_mqttFactory.CreateMqttServerStopOptionsBuilder().Build());

0 commit comments

Comments
 (0)