/// <inheritdoc /> public async Task StopAsync(CancellationToken cancellationToken) { await SetAutoUpdateInterval(0).ConfigureAwait(false); await Watchdog.StopAsync(cancellationToken).ConfigureAwait(false); await Task.WhenAll( Configuration.StopAsync(cancellationToken), ByondManager.StopAsync(cancellationToken), Chat.StopAsync(cancellationToken), dmbFactory.StopAsync(cancellationToken)) .ConfigureAwait(false); }
/// <inheritdoc /> public async Task StopAsync(CancellationToken cancellationToken) { using (LogContext.PushProperty("Instance", metadata.Id)) { await SetAutoUpdateInterval(0).ConfigureAwait(false); await Watchdog.StopAsync(cancellationToken).ConfigureAwait(false); await Task.WhenAll( Configuration.StopAsync(cancellationToken), ByondManager.StopAsync(cancellationToken), Chat.StopAsync(cancellationToken), dmbFactory.StopAsync(cancellationToken)) .ConfigureAwait(false); } }
/// <inheritdoc /> public Task StopAsync(CancellationToken cancellationToken) => Task.WhenAll(SetAutoUpdateInterval(0), Configuration.StopAsync(cancellationToken), ByondManager.StopAsync(cancellationToken), Watchdog.StopAsync(cancellationToken), Chat.StopAsync(cancellationToken), compileJobConsumer.StopAsync(cancellationToken));