44 references to BuildServerConnection
VBCSCompiler (10)
src\Compilers\Server\VBCSCompiler\BuildServerController.cs (4)
100return BuildServerConnection.GetPipeName(BuildClient.GetClientDirectory()); 119var mutexName = BuildServerConnection.GetServerMutexName(pipeName); 121using (var serverMutex = BuildServerConnection.OpenOrCreateMutex(name: mutexName, 159var success = await BuildServerConnection.RunServerShutdownRequestAsync(
src\Compilers\Server\VBCSCompiler\NamedPipeClientConnection.cs (1)
74await BuildServerConnection.MonitorDisconnectAsync(Stream, request.RequestId, Logger, DisconnectCancellationTokenSource.Token).ConfigureAwait(false);
src\Compilers\Shared\BuildClient.cs (5)
73/// It is important that this method exist here and not on <see cref="BuildServerConnection"/>. This 75/// those projects while <see cref="BuildServerConnection"/> is also included in the MSBuild 153pipeName = pipeName ?? BuildServerConnection.GetPipeName(buildPaths.ClientDirectory); 200BuildServerConnection.RunServerBuildRequestAsync( 223var buildRequest = BuildServerConnection.CreateBuildRequest(
VBCSCompiler.UnitTests (34)
BuildClientTests.cs (13)
82using (var serverMutex = BuildServerConnection.OpenOrCreateMutex( 83name: BuildServerConnection.GetServerMutexName(_pipeName), 105using (var outer = new Mutex(initiallyOwned: true, name: BuildServerConnection.GetClientMutexName(_pipeName), out bool createdNew)) 132var clientMutexName = BuildServerConnection.GetClientMutexName(_pipeName); 135var serverMutexName = BuildServerConnection.GetServerMutexName(_pipeName); 162using var pipeStream = await BuildServerConnection.TryConnectToServerAsync(pipeName, timeoutMs, _logger, cancellationToken); 333var name = BuildServerConnection.GetPipeName(path); 334Assert.Equal(name, BuildServerConnection.GetPipeName(path)); 335Assert.Equal(name, BuildServerConnection.GetPipeName(path + Path.DirectorySeparatorChar)); 336Assert.Equal(name, BuildServerConnection.GetPipeName(path + Path.DirectorySeparatorChar + Path.DirectorySeparatorChar)); 343var name = BuildServerConnection.GetPipeName(path); 353Assert.Equal(BuildServerConnection.GetPipeName(path1), BuildServerConnection.GetPipeName(path2));
BuildServerConnectionTests.cs (4)
43var response = await BuildServerConnection.RunServerBuildRequestAsync( 72var response = await BuildServerConnection.RunServerBuildRequestAsync( 98var response = await BuildServerConnection.RunServerBuildRequestAsync( 124var response = await BuildServerConnection.RunServerBuildRequestAsync(
CompilerServerApiTest.cs (7)
39var mutexName = BuildServerConnection.GetServerMutexName(pipeName); 42using (var mutex = BuildServerConnection.OpenOrCreateMutex( 67var mutexName = BuildServerConnection.GetServerMutexName(pipeName); 77wasServerMutexOpen = BuildServerConnection.WasServerMutexOpen(mutexName); 132var serverInfo = BuildServerConnection.GetServerProcessInfo(@"q:\tools", "name with space"); 145var serverInfo = BuildServerConnection.GetServerProcessInfo(toolDir, "name with space"); 158Assert.Equal(expectedName, BuildServerConnection.GetPipeName(userName, isAdmin, compilerExeDir));
NamedPipeClientConnectionHostTests.cs (1)
36private Task<NamedPipeClientStream?> ConnectAsync(CancellationToken cancellationToken = default) => BuildServerConnection.TryConnectToServerAsync(
ServerUtil.cs (5)
93var mutexName = BuildServerConnection.GetServerMutexName(pipeName); 117var mutexName = BuildServerConnection.GetServerMutexName(PipeName); 118while (BuildServerConnection.WasServerMutexOpen(mutexName) != true && !ServerTask.IsCompleted) 125BuildServerConnection.RunServerBuildRequestAsync( 193BuildServerConnection.RunServerBuildRequestAsync(
VBCSCompilerServerTests.cs (4)
98var mutexName = BuildServerConnection.GetServerMutexName(pipeName); 104using (var mutex = BuildServerConnection.OpenOrCreateMutex(name: mutexName, createdNew: out created)) 148var mutexName = BuildServerConnection.GetServerMutexName(pipeName); 156var mutex = BuildServerConnection.OpenOrCreateMutex(name: mutexName, createdNew: out created);