2 writes to _cancellationTokenSource
VBCSCompiler (2)
src\Compilers\Server\VBCSCompiler\NamedPipeClientConnectionHost.cs (2)
59
_cancellationTokenSource
= new CancellationTokenSource();
130
_cancellationTokenSource
= null;
7 references to _cancellationTokenSource
VBCSCompiler (7)
src\Compilers\Server\VBCSCompiler\NamedPipeClientConnectionHost.cs (7)
54
Debug.Assert(
_cancellationTokenSource
is null);
73
var task = Task.Run(() => ListenCoreAsync(PipeName, Logger, _queue,
_cancellationTokenSource
.Token));
85
Debug.Assert(
_cancellationTokenSource
is object);
102
_cancellationTokenSource
.Cancel();
129
_cancellationTokenSource
.Dispose();
142
Debug.Assert(
_cancellationTokenSource
is object);
145
var listenResult = await _queue.DequeueAsync(
_cancellationTokenSource
.Token).ConfigureAwait(false);