/// <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); } }