1 type derived from CancellationTokenSource
System.ServiceModel (1)
System\ServiceModel\Channels\HttpPipelineCancellationTokenSource.cs (1)
11
class HttpPipelineCancellationTokenSource :
CancellationTokenSource
31 instantiations of CancellationTokenSource
mscorlib (5)
system\threading\CancellationTokenSource.cs (4)
45
private static readonly CancellationTokenSource _staticSource_Set = new
CancellationTokenSource
(true);
46
private static readonly CancellationTokenSource _staticSource_NotCancelable = new
CancellationTokenSource
(false);
876
CancellationTokenSource linkedTokenSource = new
CancellationTokenSource
();
920
CancellationTokenSource linkedTokenSource = new
CancellationTokenSource
();
system\threading\SemaphoreSlim.cs (1)
706
new
CancellationTokenSource
())
System (6)
net\System\Net\WebSockets\ClientWebSocket.cs (1)
49
cts = new
CancellationTokenSource
();
net\System\Net\WebSockets\WebSocketBase.cs (2)
2403
linkedCancellationTokenSource = new
CancellationTokenSource
();
2408
new
CancellationTokenSource
().Token);
net\System\Net\WebSockets\WebSocketConnectionStream.cs (1)
109
new
CancellationTokenSource
(WebSocketHelpers.ClientTcpCloseTimeout);
sys\system\collections\concurrent\BlockingCollection.cs (2)
233
m_ConsumersCancellationTokenSource = new
CancellationTokenSource
();
234
m_ProducersCancellationTokenSource = new
CancellationTokenSource
();
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Validation\BackgroundValidationSynchronizer.cs (1)
148
this.cancellationTokenSource = new
CancellationTokenSource
();
System.Core (4)
System\Linq\Parallel\QueryOperators\QueryOpeningEnumerator.cs (1)
52
private readonly CancellationTokenSource m_topLevelCancellationTokenSource = new
CancellationTokenSource
();
System\Linq\Parallel\QueryOperators\QuerySettings.cs (1)
144
return WithPerExecutionSettings(new
CancellationTokenSource
(), new Shared<bool>(false));
System\Linq\Parallel\QueryOperators\Unary\ForAllOperator.cs (1)
57
CancellationTokenSource dummyInternalCancellationTokenSource = new
CancellationTokenSource
();
System\Linq\ParallelEnumerable.cs (1)
4412
.WithPerExecutionSettings(new
CancellationTokenSource
(), new System.Linq.Parallel.Shared<bool>(false));
System.Data (10)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\BackgroundValidationSynchronizer.cs (1)
148
this.cancellationTokenSource = new
CancellationTokenSource
();
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (1)
218
CancellationTokenSource cancellationTokenSource = new
CancellationTokenSource
();
fx\src\data\System\Data\SqlClient\SqlCommand.cs (2)
3071
CancellationTokenSource timeoutCTS = new
CancellationTokenSource
();
4357
CancellationTokenSource timeoutCTS = new
CancellationTokenSource
();
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
1227
CancellationTokenSource cts = new
CancellationTokenSource
();
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (3)
124
_cancelAsyncOnCloseTokenSource = new
CancellationTokenSource
();
4035
timeoutCancellationSource = new
CancellationTokenSource
();
4129
timeoutCancellationSource = new
CancellationTokenSource
();
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (1)
25
_disposalTokenSource = new
CancellationTokenSource
();
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (1)
34
_disposalTokenSource = new
CancellationTokenSource
();
System.ServiceModel.Internals (1)
System\Runtime\IOThreadCancellationTokenSource.cs (1)
44
this.source = new
CancellationTokenSource
();
System.Web (3)
UI\Page.cs (2)
6005
? new
CancellationTokenSource
(timeout)
6006
: new
CancellationTokenSource
();
Util\CancellationTokenHelper.cs (1)
27
private readonly CancellationTokenSource _cts = new
CancellationTokenSource
();
WindowsBase (1)
Base\System\Windows\Threading\Dispatcher.cs (1)
1486
ctsTimeout = new
CancellationTokenSource
(timeout);
86 references to CancellationTokenSource
mscorlib (35)
system\threading\CancellationToken.cs (12)
31
/// <see cref="System.Threading.
CancellationTokenSource
">CancellationTokenSource</see> must be used.
33
/// <see cref="System.Threading.
CancellationTokenSource
.Token">Token</see> property.
51
private
CancellationTokenSource
m_source;
75
/// calling <see cref="System.Threading.
CancellationTokenSource
.Cancel()">Cancel</see>
76
/// on the token's associated <see cref="
CancellationTokenSource
"/>.
115
/// dispose the associated <see cref="
CancellationTokenSource
"/> instance at the earliest opportunity (disposing
140
internal CancellationToken(
CancellationTokenSource
source)
162
m_source =
CancellationTokenSource
.InternalGetStaticSource(canceled);
377
return other.m_source ==
CancellationTokenSource
.InternalGetStaticSource(false);
382
return m_source ==
CancellationTokenSource
.InternalGetStaticSource(false);
420
return
CancellationTokenSource
.InternalGetStaticSource(false).GetHashCode();
498
m_source =
CancellationTokenSource
.InternalGetStaticSource(false);
system\threading\CancellationTokenRegistration.cs (1)
82
var
tokenSource = callbackInfo.CancellationTokenSource;
system\threading\CancellationTokenSource.cs (20)
28
/// (via the source's <see cref="System.Threading.
CancellationTokenSource
.Token">Token</see> property)
31
/// calling to the source's <see cref="System.Threading.
CancellationTokenSource
.Cancel()">Cancel</see>
45
private static readonly
CancellationTokenSource
_staticSource_Set = new CancellationTokenSource(true);
46
private static readonly
CancellationTokenSource
_staticSource_NotCancelable = new CancellationTokenSource(false);
88
CancellationTokenSource
cts = source as
CancellationTokenSource
;
98
/// cref="System.Threading.
CancellationTokenSource
">CancellationTokenSource</see>.
101
/// cref="System.Threading.
CancellationTokenSource
">CancellationTokenSource</see>.</value>
106
/// <see cref="System.Threading.
CancellationTokenSource
.Cancel()">Cancel</see> method.
148
/// associated with this <see cref="
CancellationTokenSource
"/>.
151
/// associated with this <see cref="
CancellationTokenSource
"/>.</value>
516
CancellationTokenSource
cts = (
CancellationTokenSource
)obj;
625
internal static
CancellationTokenSource
InternalGetStaticSource(bool set)
874
public static
CancellationTokenSource
CreateLinkedTokenSource(CancellationToken token1, CancellationToken token2)
876
CancellationTokenSource
linkedTokenSource = new CancellationTokenSource();
908
public static
CancellationTokenSource
CreateLinkedTokenSource(params CancellationToken[] tokens)
920
CancellationTokenSource
linkedTokenSource = new CancellationTokenSource();
981
internal readonly
CancellationTokenSource
CancellationTokenSource;
985
CancellationTokenSource
cancellationTokenSource)
system\threading\SemaphoreSlim.cs (2)
704
using (
var
cts = cancellationToken.CanBeCanceled ?
705
CancellationTokenSource
.CreateLinkedTokenSource(cancellationToken, default(CancellationToken)) :
System (23)
net\System\Net\WebSockets\ClientWebSocket.cs (1)
22
private readonly
CancellationTokenSource
cts;
net\System\Net\WebSockets\WebSocketBase.cs (6)
2344
private volatile
CancellationTokenSource
m_CancellationTokenSource;
2376
CancellationTokenSource
snapshot = null;
2399
CancellationTokenSource
linkedCancellationTokenSource;
2407
linkedCancellationTokenSource =
CancellationTokenSource
.CreateLinkedTokenSource(cancellationToken,
2419
CancellationTokenSource
cancellationTokenSourceSnapshot = null;
2452
CancellationTokenSource
snapshot = null;
net\System\Net\WebSockets\WebSocketConnectionStream.cs (3)
99
CancellationTokenSource
reasonableTimeoutCancellationTokenSource = null;
100
CancellationTokenSource
linkedCancellationTokenSource = null;
110
linkedCancellationTokenSource =
CancellationTokenSource
.CreateLinkedTokenSource(
sys\system\collections\concurrent\BlockingCollection.cs (13)
64
private
CancellationTokenSource
m_ConsumersCancellationTokenSource;
65
private
CancellationTokenSource
m_ProducersCancellationTokenSource;
428
CancellationTokenSource
linkedTokenSource = null;
434
linkedTokenSource =
CancellationTokenSource
.CreateLinkedTokenSource(
686
private bool TryTakeWithNoTimeValidation(out T item, int millisecondsTimeout, CancellationToken cancellationToken,
CancellationTokenSource
combinedTokenSource)
702
CancellationTokenSource
linkedTokenSource = combinedTokenSource;
710
linkedTokenSource =
CancellationTokenSource
.CreateLinkedTokenSource(cancellationToken,
1029
using (
CancellationTokenSource
linkedTokenSource =
CancellationTokenSource
.CreateLinkedTokenSource(collatedCancellationTokens))
1438
using (
CancellationTokenSource
linkedTokenSource =
CancellationTokenSource
.CreateLinkedTokenSource(collatedCancellationTokens))
1672
CancellationTokenSource
linkedTokenSource = null;
1675
linkedTokenSource =
CancellationTokenSource
.CreateLinkedTokenSource(cancellationToken, m_ConsumersCancellationTokenSource.Token);
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Validation\BackgroundValidationSynchronizer.cs (1)
25
private
CancellationTokenSource
cancellationTokenSource;
System.Core (6)
System\Linq\Parallel\QueryOperators\QueryOpeningEnumerator.cs (1)
52
private readonly
CancellationTokenSource
m_topLevelCancellationTokenSource = new CancellationTokenSource();
System\Linq\Parallel\QueryOperators\QuerySettings.cs (2)
147
internal QuerySettings WithPerExecutionSettings(
CancellationTokenSource
topLevelCancellationTokenSource, Shared<bool> topLevelDisposedFlag)
161
CancellationTokenSource
.CreateLinkedTokenSource(settings.CancellationState.InternalCancellationTokenSource.Token, settings.CancellationState.ExternalCancellationToken);
System\Linq\Parallel\QueryOperators\Unary\ForAllOperator.cs (1)
57
CancellationTokenSource
dummyInternalCancellationTokenSource = new CancellationTokenSource();
System\Linq\Parallel\Scheduling\CancellationState.cs (2)
28
internal
CancellationTokenSource
InternalCancellationTokenSource;
36
internal
CancellationTokenSource
MergedCancellationTokenSource;
System.Data (14)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\BackgroundValidationSynchronizer.cs (1)
25
private
CancellationTokenSource
cancellationTokenSource;
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (1)
218
CancellationTokenSource
cancellationTokenSource = new CancellationTokenSource();
fx\src\data\System\Data\SqlClient\SqlCommand.cs (2)
3071
CancellationTokenSource
timeoutCTS = new CancellationTokenSource();
4357
CancellationTokenSource
timeoutCTS = new CancellationTokenSource();
fx\src\data\System\Data\SqlClient\SqlConnection.cs (3)
291
private
CancellationTokenSource
_reconnectionCancellationSource;
1091
CancellationTokenSource
cts = _reconnectionCancellationSource;
1227
CancellationTokenSource
cts = new CancellationTokenSource();
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (3)
94
private
CancellationTokenSource
_cancelAsyncOnCloseTokenSource;
4033
CancellationTokenSource
timeoutCancellationSource = null;
4100
CancellationTokenSource
timeoutCancellationSource = null;
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (3)
15
private
CancellationTokenSource
_disposalTokenSource; // Used to indicate that a cancellation is requested due to disposal
174
CancellationTokenSource
combinedTokenSource;
183
combinedTokenSource =
CancellationTokenSource
.CreateLinkedTokenSource(cancellationToken, _disposalTokenSource.Token);
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (1)
19
private
CancellationTokenSource
_disposalTokenSource; // Used to indicate that a cancellation is requested due to disposal
System.ServiceModel.Internals (1)
System\Runtime\IOThreadCancellationTokenSource.cs (1)
14
CancellationTokenSource
source;
System.Web (5)
UI\Page.cs (2)
6000
internal
CancellationTokenSource
CreateCancellationTokenFromAsyncTimeout() {
6032
using (
CancellationTokenSource
cancellationTokenSource = CreateCancellationTokenFromAsyncTimeout()) {
UI\WebControls\ModelDataSourceView.cs (2)
738
CancellationTokenSource
cancellationTokenSource = _owner.DataControl.Page.CreateCancellationTokenFromAsyncTimeout();
826
CancellationTokenSource
cancellationTokenSource = _owner.DataControl.Page.CreateCancellationTokenFromAsyncTimeout();
Util\CancellationTokenHelper.cs (1)
27
private readonly
CancellationTokenSource
_cts = new CancellationTokenSource();
WindowsBase (1)
Base\System\Windows\Threading\Dispatcher.cs (1)
1479
CancellationTokenSource
ctsTimeout = null;