Exemple #1
0
        public static Task <BuildResponse> RunServerCompilation(
            RequestLanguage language,
            List <string> arguments,
            BuildPaths buildPaths,
            string keepAlive,
            string libEnvVariable,
            CancellationToken cancellationToken)
        {
            var pipeNameOpt = BuildServerConnection.GetPipeNameForPathOpt(buildPaths.ClientDirectory);

            return(RunServerCompilationCore(
                       language,
                       arguments,
                       buildPaths,
                       pipeNameOpt,
                       keepAlive,
                       libEnvVariable,
                       timeoutOverride: null,
                       tryCreateServerFunc: BuildServerConnection.TryCreateServerCore,
                       cancellationToken: cancellationToken));
        }
Exemple #2
0
 /// <summary>
 /// Given the full path to the directory containing the compiler exes,
 /// retrieves the name of the pipe for client/server communication on
 /// that instance of the compiler.
 /// </summary>
 protected override string GetSessionKey(BuildPaths buildPaths)
 {
     return(BuildServerConnection.GetPipeNameForPathOpt(buildPaths.ClientDirectory));
 }