26 instantiations of CancellationTokenRegistration
mscorlib (7)
system\threading\CancellationToken.cs (1)
334
return new
CancellationTokenRegistration
(); // nothing to do for tokens than can never reach the canceled state. Give them a dummy registration.
system\threading\CancellationTokenSource.cs (3)
664
return new
CancellationTokenRegistration
();
690
CancellationTokenRegistration registration = new
CancellationTokenRegistration
(callbackInfo, addInfo);
710
return new
CancellationTokenRegistration
();
system\threading\Tasks\Parallel.cs (3)
1080
CancellationTokenRegistration ctr = new
CancellationTokenRegistration
();
1395
CancellationTokenRegistration ctr = new
CancellationTokenRegistration
();
3246
CancellationTokenRegistration ctr = new
CancellationTokenRegistration
();
System (9)
net\System\Net\WebSockets\ClientWebSocket.cs (1)
153
CancellationTokenRegistration connectCancellation = new
CancellationTokenRegistration
();
net\System\Net\WebSockets\WebSocketConnectionStream.cs (4)
103
CancellationTokenRegistration cancellationTokenRegistration = new
CancellationTokenRegistration
();
205
CancellationTokenRegistration cancellationTokenRegistration = new
CancellationTokenRegistration
();
252
CancellationTokenRegistration cancellationTokenRegistration = new
CancellationTokenRegistration
();
321
CancellationTokenRegistration cancellationTokenRegistration = new
CancellationTokenRegistration
();
net\System\Net\WebSockets\WebSocketHttpListenerDuplexStream.cs (4)
144
CancellationTokenRegistration cancellationTokenRegistration = new
CancellationTokenRegistration
();
369
CancellationTokenRegistration cancellationTokenRegistration = new
CancellationTokenRegistration
();
432
CancellationTokenRegistration cancellationTokenRegistration = new
CancellationTokenRegistration
();
622
CancellationTokenRegistration cancellationTokenRegistration = new
CancellationTokenRegistration
();
System.Core (1)
System\Linq\ParallelEnumerable.cs (1)
370
CancellationTokenRegistration dummyRegistration = new
CancellationTokenRegistration
();
System.Data (8)
fx\src\data\System\Data\Common\DBCommand.cs (3)
213
CancellationTokenRegistration registration = new
CancellationTokenRegistration
();
249
CancellationTokenRegistration registration = new
CancellationTokenRegistration
();
273
CancellationTokenRegistration registration = new
CancellationTokenRegistration
();
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (1)
2580
CancellationTokenRegistration regReconnectCancel = new
CancellationTokenRegistration
();
fx\src\data\System\Data\SqlClient\SqlCommand.cs (3)
2412
CancellationTokenRegistration registration = new
CancellationTokenRegistration
();
2476
CancellationTokenRegistration registration = new
CancellationTokenRegistration
();
2580
CancellationTokenRegistration registration = new
CancellationTokenRegistration
();
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
1432
CancellationTokenRegistration registration = new
CancellationTokenRegistration
();
WindowsBase (1)
Base\System\Windows\Threading\Dispatcher.cs (1)
1478
CancellationTokenRegistration ctTimeoutRegistration = new
CancellationTokenRegistration
();
52 references to CancellationTokenRegistration
mscorlib (29)
system\io\filestream.cs (1)
2709
internal
CancellationTokenRegistration
_registration;
system\threading\CancellationToken.cs (6)
194
public
CancellationTokenRegistration
Register(Action callback)
229
public
CancellationTokenRegistration
Register(Action callback, bool useSynchronizationContext)
262
public
CancellationTokenRegistration
Register(Action<Object> callback, Object state)
300
public
CancellationTokenRegistration
Register(Action<Object> callback, Object state, bool useSynchronizationContext)
312
internal
CancellationTokenRegistration
InternalRegisterWithoutEC(Action<object> callback, Object state)
325
private
CancellationTokenRegistration
Register(Action<Object> callback, Object state, bool useSynchronizationContext, bool useExecutionContext)
system\threading\CancellationTokenRegistration.cs (8)
23
public struct CancellationTokenRegistration : IEquatable<
CancellationTokenRegistration
>, IDisposable
103
public static bool operator ==(
CancellationTokenRegistration
left,
CancellationTokenRegistration
right)
114
public static bool operator !=(
CancellationTokenRegistration
left,
CancellationTokenRegistration
right)
131
return ((obj is
CancellationTokenRegistration
) && Equals((
CancellationTokenRegistration
) obj));
144
public bool Equals(
CancellationTokenRegistration
other)
system\threading\CancellationTokenSource.cs (6)
76
private
CancellationTokenRegistration
[] m_linkingRegistrations; //lazily initialized if required.
634
internal
CancellationTokenRegistration
InternalRegister(
690
CancellationTokenRegistration
registration = new CancellationTokenRegistration(callbackInfo, addInfo);
882
linkedTokenSource.m_linkingRegistrations = new
CancellationTokenRegistration
[token2CanBeCanceled ? 2 : 1]; // there will be at least 1 and at most 2 linkings
891
linkedTokenSource.m_linkingRegistrations = new
CancellationTokenRegistration
[1]; // this will be the only linking
921
linkedTokenSource.m_linkingRegistrations = new
CancellationTokenRegistration
[tokens.Length];
system\threading\SemaphoreSlim.cs (1)
339
CancellationTokenRegistration
cancellationTokenRegistration = cancellationToken.InternalRegisterWithoutEC(s_cancellationTokenCanceledEventHandler, this);
system\threading\Tasks\Parallel.cs (3)
1080
CancellationTokenRegistration
ctr = new CancellationTokenRegistration();
1395
CancellationTokenRegistration
ctr = new CancellationTokenRegistration();
3246
CancellationTokenRegistration
ctr = new CancellationTokenRegistration();
system\threading\Tasks\Task.cs (4)
266
internal Shared<
CancellationTokenRegistration
> m_cancellationRegistration; // Task's registration with the cancellation token
699
CancellationTokenRegistration
ctr;
714
props.m_cancellationRegistration = new Shared<
CancellationTokenRegistration
>(ctr);
5921
internal
CancellationTokenRegistration
Registration;
System (9)
net\System\Net\WebSockets\ClientWebSocket.cs (1)
153
CancellationTokenRegistration
connectCancellation = new CancellationTokenRegistration();
net\System\Net\WebSockets\WebSocketConnectionStream.cs (4)
103
CancellationTokenRegistration
cancellationTokenRegistration = new CancellationTokenRegistration();
205
CancellationTokenRegistration
cancellationTokenRegistration = new CancellationTokenRegistration();
252
CancellationTokenRegistration
cancellationTokenRegistration = new CancellationTokenRegistration();
321
CancellationTokenRegistration
cancellationTokenRegistration = new CancellationTokenRegistration();
net\System\Net\WebSockets\WebSocketHttpListenerDuplexStream.cs (4)
144
CancellationTokenRegistration
cancellationTokenRegistration = new CancellationTokenRegistration();
369
CancellationTokenRegistration
cancellationTokenRegistration = new CancellationTokenRegistration();
432
CancellationTokenRegistration
cancellationTokenRegistration = new CancellationTokenRegistration();
622
CancellationTokenRegistration
cancellationTokenRegistration = new CancellationTokenRegistration();
System.Core (2)
System\IO\Pipes\IOCancellationHelper.cs (1)
16
private
CancellationTokenRegistration
_cancellationRegistration;
System\Linq\ParallelEnumerable.cs (1)
370
CancellationTokenRegistration
dummyRegistration = new CancellationTokenRegistration();
System.Data (10)
fx\src\data\System\Data\Common\DBCommand.cs (3)
213
CancellationTokenRegistration
registration = new CancellationTokenRegistration();
249
CancellationTokenRegistration
registration = new CancellationTokenRegistration();
273
CancellationTokenRegistration
registration = new CancellationTokenRegistration();
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (1)
2580
CancellationTokenRegistration
regReconnectCancel = new CancellationTokenRegistration();
fx\src\data\System\Data\SqlClient\SqlCommand.cs (3)
2412
CancellationTokenRegistration
registration = new CancellationTokenRegistration();
2476
CancellationTokenRegistration
registration = new CancellationTokenRegistration();
2580
CancellationTokenRegistration
registration = new CancellationTokenRegistration();
fx\src\data\System\Data\SqlClient\SqlConnection.cs (3)
1432
CancellationTokenRegistration
registration = new CancellationTokenRegistration();
1457
CancellationTokenRegistration
_registration;
1459
public OpenAsyncRetry(SqlConnection parent, TaskCompletionSource<DbConnectionInternal> retry, TaskCompletionSource<object> result,
CancellationTokenRegistration
registration) {
WindowsBase (2)
Base\System\Windows\Threading\Dispatcher.cs (2)
1086
CancellationTokenRegistration
cancellationRegistration = cancellationToken.Register(s => ((DispatcherOperation)s).Abort(), operation);
1478
CancellationTokenRegistration
ctTimeoutRegistration = new CancellationTokenRegistration();