15 references to Register
System.Core (2)
System\IO\Pipes\IOCancellationHelper.cs (1)
47
this._cancellationRegistration = this._cancellationToken.
Register
(Cancel);
System\Linq\ParallelEnumerable.cs (1)
373
dummyRegistration = cancellationToken.
Register
(() => { });
System.Data (12)
fx\src\data\System\Data\Common\DBCommand.cs (3)
215
registration = cancellationToken.
Register
(CancelIgnoreFailure);
251
registration = cancellationToken.
Register
(CancelIgnoreFailure);
275
registration = cancellationToken.
Register
(CancelIgnoreFailure);
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (1)
2583
regReconnectCancel = cts.
Register
(() => cancellableReconnectTS.TrySetCanceled());
fx\src\data\System\Data\SqlClient\SqlCommand.cs (3)
2418
registration = cancellationToken.
Register
(CancelIgnoreFailure);
2482
registration = cancellationToken.
Register
(CancelIgnoreFailure);
2586
registration = cancellationToken.
Register
(CancelIgnoreFailure);
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
1434
registration = cancellationToken.
Register
(() => completion.TrySetCanceled());
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (4)
3950
registration = cancellationToken.
Register
(_command.CancelIgnoreFailure);
4279
registration = cancellationToken.
Register
(_command.CancelIgnoreFailure);
4400
registration = cancellationToken.
Register
(_command.CancelIgnoreFailure);
4501
registration = cancellationToken.
Register
(_command.CancelIgnoreFailure);
System.Web (1)
WebSockets\AspNetWebSocket.cs (1)
580
cancellationTokenRegistration = cancellationToken.
Register
(() => Abort(throwIfDisposed: false));