40 references to Token
mscorlib (3)
system\threading\CancellationToken.cs (1)
33/// <see cref="System.Threading.CancellationTokenSource.Token">Token</see> property.
system\threading\CancellationTokenSource.cs (1)
28/// (via the source's <see cref="System.Threading.CancellationTokenSource.Token">Token</see> property)
system\threading\SemaphoreSlim.cs (1)
708var waitCompleted = Task.WhenAny(asyncWaiter, Task.Delay(millisecondsTimeout, cts.Token));
System (14)
net\System\Net\WebSockets\ClientWebSocket.cs (1)
254cts.Token.Register(AbortRequest, request, false);
net\System\Net\WebSockets\WebSocketBase.cs (2)
2408new CancellationTokenSource().Token); 2414return linkedCancellationTokenSource.Token;
net\System\Net\WebSockets\WebSocketConnectionStream.cs (2)
111reasonableTimeoutCancellationTokenSource.Token, 113linkedCancellationToken = linkedCancellationTokenSource.Token;
sys\system\collections\concurrent\BlockingCollection.cs (9)
435cancellationToken, m_ProducersCancellationTokenSource.Token); 436waitForSemaphoreWasSuccessful = m_freeNodes.Wait(millisecondsTimeout, linkedTokenSource.Token); 711m_ConsumersCancellationTokenSource.Token); 712waitForSemaphoreWasSuccessful = m_occupiedNodes.Wait(millisecondsTimeout, linkedTokenSource.Token); 1031handles.Add(linkedTokenSource.Token.WaitHandle); // add the combined token to the handles list 1114tokensList.Add(collections[i].m_ProducersCancellationTokenSource.Token); 1126tokensList.Add(collections[i].m_ConsumersCancellationTokenSource.Token); 1440handles.Add(linkedTokenSource.Token.WaitHandle); // add the combined token to the handles list 1675linkedTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, m_ConsumersCancellationTokenSource.Token);
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Validation\BackgroundValidationSynchronizer.cs (1)
130TValidationResult result = this.validationWork(reason, this.cancellationTokenSource.Token);
System.Core (2)
System\Linq\Parallel\QueryOperators\QuerySettings.cs (1)
161CancellationTokenSource.CreateLinkedTokenSource(settings.CancellationState.InternalCancellationTokenSource.Token, settings.CancellationState.ExternalCancellationToken);
System\Linq\Parallel\Scheduling\CancellationState.cs (1)
44return MergedCancellationTokenSource.Token;
System.Data (12)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\BackgroundValidationSynchronizer.cs (1)
130TValidationResult result = this.validationWork(reason, this.cancellationTokenSource.Token);
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (1)
258}, cancellationTokenSource.Token, TaskContinuationOptions.LongRunning, TaskScheduler.Default);
fx\src\data\System\Data\SqlClient\SqlCommand.cs (2)
3072AsyncHelper.SetTimeoutException(completion, timeout, SQL.CR_ReconnectTimeout, timeoutCTS.Token); 4358AsyncHelper.SetTimeoutException(completion, timeout, SQL.CR_ReconnectTimeout, timeoutCTS.Token);
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
1229CancellationToken ctoken = cts.Token;
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (3)
125_cancelAsyncOnCloseToken = _cancelAsyncOnCloseTokenSource.Token; 4037timeoutToken = timeoutCancellationSource.Token; 4131timeoutToken = timeoutCancellationSource.Token;
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (3)
183combinedTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _disposalTokenSource.Token); 189if ((reader != null) && (!cancellationToken.IsCancellationRequested) && (!_disposalTokenSource.Token.IsCancellationRequested)) 191getBytesTask = reader.GetBytesAsync(_columnIndex, buffer, offset, count, _readTimeout, combinedTokenSource.Token, out bytesRead);
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (1)
178Task<int> getBytesTask = reader.GetBytesAsync(_columnIndex, byteBuffer, byteBufferUsed, byteBuffer.Length - byteBufferUsed, Timeout.Infinite, _disposalTokenSource.Token, out bytesRead);
System.ServiceModel (2)
System\ServiceModel\Channels\HttpPipeline.cs (1)
516this.transportIntegrationHandlerTask = this.transportIntegrationHandler.ProcessPipelineAsync(this.httpRequestMessage, this.cancellationTokenSource.Token);
System\ServiceModel\Channels\HttpPipelineCancellationTokenSource.cs (1)
20this.Token.Register(onCancelled, this);
System.ServiceModel.Internals (1)
System\Runtime\IOThreadCancellationTokenSource.cs (1)
46this.token = this.source.Token;
System.Web (4)
UI\Page.cs (1)
6033CancellationToken cancellationToken = cancellationTokenSource.Token;
UI\WebControls\ModelDataSourceView.cs (2)
739CancellationToken cancellationToken = cancellationTokenSource.Token; 827CancellationToken cancellationToken = cancellationTokenSource.Token;
Util\CancellationTokenHelper.cs (1)
42get { return _cts.Token; }
WindowsBase (1)
Base\System\Windows\Threading\Dispatcher.cs (1)
1487ctTimeout = ctsTimeout.Token;