예제 #1
0
        internal async Task <int> RunShutdownAsync(string pipeName, bool waitForProcess, CancellationToken cancellationToken = default)
        {
            var success = await BuildServerConnection.RunServerShutdownRequestAsync(
                pipeName,
                timeoutOverride : null,
                waitForProcess : waitForProcess,
                _logger,
                cancellationToken).ConfigureAwait(false);

            return(success ? CommonCompiler.Succeeded : CommonCompiler.Failed);
        }