Ejemplo n.º 1
0
        private async Task FinishLaunch(Launch launch)
        {
            if (launch.IsNotFinished())
            {
                var finishRequest = new FinishLaunchRequest {
                    EndTime = DateTime.UtcNow
                };
                var message = await _service.FinishLaunchAsync(launch.Id, finishRequest, true).ConfigureAwait(false);

                _logger?.LogDebug(message.Info);
            }
        }
        public async Task <Launch> CleanAsync(Launch launch)
        {
            if (launch.IsNotFinished())
            {
                var finishRequest = new FinishLaunchRequest {
                    EndTime = DateTime.UtcNow
                };
                var message = await _service.FinishLaunchAsync(launch.Id, finishRequest, true).ConfigureAwait(false);

                _logger.LogDebug(message.Info);
            }

            return(await _decorated.CleanAsync(launch).ConfigureAwait(false));
        }