public Task StopAsync(CancellationToken cancellationToken) { _logger.LogInformation("服务停止"); _mqClient.Dispose(); return(Task.CompletedTask); }
public override async Task StopAsync(CancellationToken cancellationToken) { _messageBus.Dispose(); await base.StopAsync(cancellationToken); }