44 references to BuildServerConnection
VBCSCompiler (10)
src\Compilers\Server\VBCSCompiler\BuildServerController.cs (4)
100
return
BuildServerConnection
.GetPipeName(BuildClient.GetClientDirectory());
119
var mutexName =
BuildServerConnection
.GetServerMutexName(pipeName);
121
using (var serverMutex =
BuildServerConnection
.OpenOrCreateMutex(name: mutexName,
159
var success = await
BuildServerConnection
.RunServerShutdownRequestAsync(
src\Compilers\Server\VBCSCompiler\NamedPipeClientConnection.cs (1)
74
await
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
153
pipeName = pipeName ??
BuildServerConnection
.GetPipeName(buildPaths.ClientDirectory);
200
BuildServerConnection
.RunServerBuildRequestAsync(
223
var buildRequest =
BuildServerConnection
.CreateBuildRequest(
VBCSCompiler.UnitTests (34)
BuildClientTests.cs (13)
82
using (var serverMutex =
BuildServerConnection
.OpenOrCreateMutex(
83
name:
BuildServerConnection
.GetServerMutexName(_pipeName),
105
using (var outer = new Mutex(initiallyOwned: true, name:
BuildServerConnection
.GetClientMutexName(_pipeName), out bool createdNew))
132
var clientMutexName =
BuildServerConnection
.GetClientMutexName(_pipeName);
135
var serverMutexName =
BuildServerConnection
.GetServerMutexName(_pipeName);
162
using var pipeStream = await
BuildServerConnection
.TryConnectToServerAsync(pipeName, timeoutMs, _logger, cancellationToken);
333
var name =
BuildServerConnection
.GetPipeName(path);
334
Assert.Equal(name,
BuildServerConnection
.GetPipeName(path));
335
Assert.Equal(name,
BuildServerConnection
.GetPipeName(path + Path.DirectorySeparatorChar));
336
Assert.Equal(name,
BuildServerConnection
.GetPipeName(path + Path.DirectorySeparatorChar + Path.DirectorySeparatorChar));
343
var name =
BuildServerConnection
.GetPipeName(path);
353
Assert.Equal(
BuildServerConnection
.GetPipeName(path1),
BuildServerConnection
.GetPipeName(path2));
BuildServerConnectionTests.cs (4)
43
var response = await
BuildServerConnection
.RunServerBuildRequestAsync(
72
var response = await
BuildServerConnection
.RunServerBuildRequestAsync(
98
var response = await
BuildServerConnection
.RunServerBuildRequestAsync(
124
var response = await
BuildServerConnection
.RunServerBuildRequestAsync(
CompilerServerApiTest.cs (7)
39
var mutexName =
BuildServerConnection
.GetServerMutexName(pipeName);
42
using (var mutex =
BuildServerConnection
.OpenOrCreateMutex(
67
var mutexName =
BuildServerConnection
.GetServerMutexName(pipeName);
77
wasServerMutexOpen =
BuildServerConnection
.WasServerMutexOpen(mutexName);
132
var serverInfo =
BuildServerConnection
.GetServerProcessInfo(@"q:\tools", "name with space");
145
var serverInfo =
BuildServerConnection
.GetServerProcessInfo(toolDir, "name with space");
158
Assert.Equal(expectedName,
BuildServerConnection
.GetPipeName(userName, isAdmin, compilerExeDir));
NamedPipeClientConnectionHostTests.cs (1)
36
private Task<NamedPipeClientStream?> ConnectAsync(CancellationToken cancellationToken = default) =>
BuildServerConnection
.TryConnectToServerAsync(
ServerUtil.cs (5)
93
var mutexName =
BuildServerConnection
.GetServerMutexName(pipeName);
117
var mutexName =
BuildServerConnection
.GetServerMutexName(PipeName);
118
while (
BuildServerConnection
.WasServerMutexOpen(mutexName) != true && !ServerTask.IsCompleted)
125
BuildServerConnection
.RunServerBuildRequestAsync(
193
BuildServerConnection
.RunServerBuildRequestAsync(
VBCSCompilerServerTests.cs (4)
98
var mutexName =
BuildServerConnection
.GetServerMutexName(pipeName);
104
using (var mutex =
BuildServerConnection
.OpenOrCreateMutex(name: mutexName, createdNew: out created))
148
var mutexName =
BuildServerConnection
.GetServerMutexName(pipeName);
156
var mutex =
BuildServerConnection
.OpenOrCreateMutex(name: mutexName, createdNew: out created);