2 implementations of IClientConnection
VBCSCompiler (1)
NamedPipeClientConnection.cs (1)
18
internal sealed class NamedPipeClientConnection :
IClientConnection
VBCSCompiler.UnitTests (1)
TestableClientConnection.cs (1)
17
internal sealed class TestableClientConnection :
IClientConnection
27 references to IClientConnection
VBCSCompiler (9)
ClientConnectionHandler.cs (4)
35
Task<
IClientConnection
> clientConnectionTask,
51
using
var
clientConnection = await clientConnectionTask.ConfigureAwait(false);
99
private async Task<CompletionData> WriteBuildResponseAsync(
IClientConnection
clientConnection, Guid requestId, BuildResponse response, CompletionData completionData, CancellationToken cancellationToken)
111
private async Task<CompletionData> ProcessCompilationRequestAsync(
IClientConnection
clientConnection, BuildRequest request, CancellationToken cancellationToken)
IClientConnection.cs (2)
47
/// Returns a <see cref="Task"/> that completes when a new <see cref="
IClientConnection
"/> is
51
Task<
IClientConnection
> GetNextClientConnectionAsync();
NamedPipeClientConnectionHost.cs (1)
135
public async Task<
IClientConnection
> GetNextClientConnectionAsync()
ServerDispatcher.cs (2)
61
private Task<
IClientConnection
>? _listenTask;
334
Task<
IClientConnection
> clientStreamTask,
VBCSCompiler.UnitTests (18)
ClientConnectionHandlerTests.cs (6)
33
var completionData = await clientConnectionHandler.ProcessAsync(Task.FromResult<
IClientConnection
>(clientConnection));
51
var completionData = await clientConnectionHandler.ProcessAsync(Task.FromResult<
IClientConnection
>(clientConnection));
71
var completionData = await clientConnectionHandler.ProcessAsync(Task.FromResult<
IClientConnection
>(clientConnection));
104
Task.FromResult<
IClientConnection
>(clientConnection),
139
Task.FromResult<
IClientConnection
>(clientConnection),
170
var task = clientConnectionHandler.ProcessAsync(Task.FromResult<
IClientConnection
>(clientConnection));
CompilerServerApiTest.cs (2)
74
var tcs = new TaskCompletionSource<
IClientConnection
>();
98
return Task.FromResult<
IClientConnection
>(client);
NamedPipeClientConnectionHostTests.cs (2)
103
var
clientConnection = await _host.GetNextClientConnectionAsync();
152
using
var
server = await _host.GetNextClientConnectionAsync();
TestableClientConnectionHost.cs (8)
17
private TaskCompletionSource<
IClientConnection
>? _finalTaskCompletionSource;
18
private readonly Queue<Func<Task<
IClientConnection
>>> _waitingTasks = new Queue<Func<Task<
IClientConnection
>>>();
30
_finalTaskCompletionSource = new TaskCompletionSource<
IClientConnection
>();
45
public Task<
IClientConnection
> GetNextClientConnectionAsync()
47
Func<Task<
IClientConnection
>>? func = null;
54
_finalTaskCompletionSource = new TaskCompletionSource<
IClientConnection
>();
66
public void Add(Func<Task<
IClientConnection
>> func)