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