コード例 #1
0
        /// <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);
        }
コード例 #2
0
        /// <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);
            }
        }
コード例 #3
0
 /// <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));