104 references to None
mscorlib (18)
system\io\bufferedstream.cs (2)
631
Task<Int32> readOp = ReadFromUnderlyingStreamAsync(buffer, offset, count, CancellationToken.
None
,
1056
Task writeOp = WriteToUnderlyingStreamAsync(buffer, offset, count, CancellationToken.
None
, semaphoreLockTask, useApmPattern: true);
system\io\stream.cs (6)
138
return CopyToAsync(destination, bufferSize, CancellationToken.
None
);
278
return FlushAsync(CancellationToken.
None
);
412
return ReadAsync(buffer, offset, count, CancellationToken.
None
);
634
base(function, state, CancellationToken.
None
, TaskCreationOptions.DenyChildAttach)
707
return WriteAsync(buffer, offset, count, CancellationToken.
None
);
950
s_nullReadTask = nullReadTask = new Task<int>(false, 0, (TaskCreationOptions)InternalTaskOptions.DoNotDispose, CancellationToken.
None
); // benign ----
system\io\textreader.cs (2)
200
return Task<String>.Factory.StartNew(_ReadLineDelegate, this, CancellationToken.
None
, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
240
return Task<int>.Factory.StartNew(_ReadDelegate, tuple, CancellationToken.
None
, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
system\io\textwriter.cs (7)
544
return Task.Factory.StartNew(_WriteCharDelegate, tuple, CancellationToken.
None
, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
552
return Task.Factory.StartNew(_WriteStringDelegate, tuple, CancellationToken.
None
, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
568
return Task.Factory.StartNew(_WriteCharArrayRangeDelegate, tuple, CancellationToken.
None
, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
576
return Task.Factory.StartNew(_WriteLineCharDelegate, tuple, CancellationToken.
None
, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
584
return Task.Factory.StartNew(_WriteLineStringDelegate, tuple, CancellationToken.
None
, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
600
return Task.Factory.StartNew(_WriteLineCharArrayRangeDelegate, tuple, CancellationToken.
None
, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
614
return Task.Factory.StartNew(_FlushDelegate, this, CancellationToken.
None
, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
system\threading\Tasks\Parallel.cs (1)
60
m_cancellationToken = CancellationToken.
None
;
System (23)
net\System\Net\WebSockets\WebSocketBase.cs (10)
222
CancellationToken linkedCancellationToken = CancellationToken.
None
;
326
CancellationToken linkedCancellationToken = CancellationToken.
None
;
545
CancellationToken linkedCancellationToken = CancellationToken.
None
;
788
CancellationToken linkedCancellationToken = CancellationToken.
None
;
884
linkedCancellationToken = CancellationToken.
None
;
1544
CancellationToken linkedCancellationToken = CancellationToken.
None
;
1561
ownsCancellationTokenSource = thisPtr.m_SendOutstandingOperationHelper.TryStartOperation(CancellationToken.
None
, out linkedCancellationToken);
1589
CancellationToken.
None
,
2350
linkedCancellationToken = CancellationToken.
None
;
2401
if (cancellationToken == CancellationToken.
None
)
net\System\Net\WebSockets\WebSocketConnectionStream.cs (1)
101
CancellationToken linkedCancellationToken = CancellationToken.
None
;
sys\system\collections\concurrent\BlockingCollection.cs (12)
554
if (!TryTake(out item, Timeout.Infinite, CancellationToken.
None
))
598
return TryTake(out item, 0, CancellationToken.
None
);
621
return TryTakeWithNoTimeValidation(out item, (int)timeout.TotalMilliseconds, CancellationToken.
None
, null);
642
return TryTakeWithNoTimeValidation(out item, millisecondsTimeout, CancellationToken.
None
, null);
812
TryAddToAny(collections, item, Timeout.Infinite, CancellationToken.
None
);
882
return TryAddToAny(collections, item, 0, CancellationToken.
None
);
912
return TryAddToAnyCore(collections, item, (int)timeout.TotalMilliseconds, CancellationToken.
None
);
939
return TryAddToAnyCore(collections, item, millisecondsTimeout, CancellationToken.
None
);
1188
return TakeFromAny(collections, out item, CancellationToken.
None
);
1278
return TryTakeFromAnyCore(collections, out item, (int)timeout.TotalMilliseconds, false, CancellationToken.
None
);
1308
return TryTakeFromAnyCore(collections, out item, millisecondsTimeout, false, CancellationToken.
None
);
1658
return GetConsumingEnumerable(CancellationToken.
None
);
System.Activities (2)
System\Activities\ProcessActivityTreeOptions.cs (2)
330
if (originalOptions.CancellationToken == CancellationToken.
None
)
364
if (settings.CancellationToken == CancellationToken.
None
)
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Validation\ForegroundValidationSynchronizer.cs (1)
31
this.updateWork(this.validationWork(reason, /* cancellationToken = */ CancellationToken.
None
));
System.Core (3)
System\IO\Pipes\Pipe.cs (3)
642
return WaitForConnectionAsync(CancellationToken.
None
);
1243
return ConnectAsync(Timeout.Infinite, CancellationToken.
None
);
1247
return ConnectAsync(timeout, CancellationToken.
None
);
System.Data (28)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\ForegroundValidationSynchronizer.cs (1)
31
this.updateWork(this.validationWork(reason, /* cancellationToken = */ CancellationToken.
None
));
fx\src\data\System\Data\Common\DBCommand.cs (4)
205
return ExecuteNonQueryAsync(CancellationToken.
None
);
229
return ExecuteReaderAsync(CommandBehavior.Default, CancellationToken.
None
);
237
return ExecuteReaderAsync(behavior, CancellationToken.
None
);
265
return ExecuteScalarAsync(CancellationToken.
None
);
fx\src\data\System\Data\Common\DBConnection.cs (1)
181
return OpenAsync(CancellationToken.
None
);
fx\src\data\System\Data\Common\DbDataReader.cs (4)
199
return GetFieldValueAsync<T>(ordinal, CancellationToken.
None
);
221
return IsDBNullAsync(ordinal, CancellationToken.
None
);
243
return ReadAsync(CancellationToken.
None
);
261
return NextResultAsync(CancellationToken.
None
);
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (10)
1485
WriteRowSourceToServerAsync(reader.FieldCount, CancellationToken.
None
); //It returns null since _isAsyncBulkCopy = false;
1515
WriteRowSourceToServerAsync(reader.FieldCount, CancellationToken.
None
); //It returns null since _isAsyncBulkCopy = false;
1548
WriteRowSourceToServerAsync(table.Columns.Count, CancellationToken.
None
); //It returns null since _isAsyncBulkCopy = false;
1585
WriteRowSourceToServerAsync(table.Columns.Count, CancellationToken.
None
); //It returns null since _isAsyncBulkCopy = false;
1594
return WriteToServerAsync(rows, CancellationToken.
None
);
1643
return WriteToServerAsync(reader, CancellationToken.
None
);
1675
return WriteToServerAsync(reader, CancellationToken.
None
);
1707
return WriteToServerAsync(table, 0, CancellationToken.
None
);
1713
return WriteToServerAsync(table, rowState, CancellationToken.
None
);
2588
()=>{return SQL.BulkLoadInvalidDestinationTable(_destinationTableName, SQL.CR_ReconnectTimeout());}, CancellationToken.
None
);
fx\src\data\System\Data\SqlClient\SqlCommand.cs (4)
2454
}, CancellationToken.
None
, TaskContinuationOptions.ExecuteSynchronously | TaskContinuationOptions.NotOnCanceled, TaskScheduler.Default);
2458
return ExecuteReaderAsync(CommandBehavior.Default, CancellationToken.
None
);
2462
return ExecuteReaderAsync(behavior, CancellationToken.
None
);
2570
return ExecuteXmlReaderAsync(CancellationToken.
None
);
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (3)
4032
CancellationToken timeoutToken = CancellationToken.
None
;
4088
return GetBytesAsyncReadDataStage(i, buffer, index, length, timeout, false, cancellationToken, CancellationToken.
None
, out bytesRead);
4127
Debug.Assert(timeoutToken == CancellationToken.
None
, "TimeoutToken is set when GetBytesAsyncReadDataStage is not a continuation");
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (1)
124
Task readTask = ReadAsync(buffer, offset, count, CancellationToken.
None
);
System.ServiceModel (12)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (10)
184
Task task = this.CloseOutputAsync(CancellationToken.
None
);
248
}, CancellationToken.
None
);
342
Task task = this.WebSocket.SendAsync(messageData, outgoingMessageType, true, CancellationToken.
None
);
416
return this.WebSocket.CloseAsync(this.webSocketCloseDetails.OutputCloseStatus, this.webSocketCloseDetails.OutputCloseStatusDescription, CancellationToken.
None
);
665
CancellationToken.
None
);
878
CancellationToken.
None
);
1261
Task<WebSocketReceiveResult> task = this.webSocket.ReceiveAsync(new ArraySegment<byte>(buffer, offset, count), CancellationToken.
None
);
1319
Task task = this.webSocket.SendAsync(new ArraySegment<byte>(buffer, offset, count), this.outgoingMessageType, false, CancellationToken.
None
);
1381
Task task = this.webSocket.SendAsync(new ArraySegment<byte>(EmptyArray<byte>.Instance, 0, 0), this.outgoingMessageType, true, CancellationToken.
None
);
1468
Task<WebSocketReceiveResult> receiveTask = this.webSocket.ReceiveAsync(new ArraySegment<byte>(this.initialReadBuffer.Array), CancellationToken.
None
);
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (2)
276
}, callback, CancellationToken.
None
, TaskContinuationOptions.HideScheduler, TaskScheduler.Default);
309
}, continuationState, CancellationToken.
None
, TaskContinuationOptions.HideScheduler, TaskScheduler.Default);
System.ServiceModel.Discovery (2)
System\ServiceModel\Discovery\DiscoveryClient.cs (2)
427
return this.FindTaskAsync(criteria, CancellationToken.
None
);
448
return this.ResolveTaskAsync(criteria, CancellationToken.
None
);
System.ServiceModel.Internals (1)
System\Runtime\IOThreadCancellationTokenSource.cs (1)
39
this.token = CancellationToken.
None
;
System.Web (2)
Hosting\IIS7WorkerRequest.cs (1)
842
cancellationToken = CancellationToken.
None
;
UI\WebControls\ModelDataSourceView.cs (1)
1057
value = CancellationToken.
None
;
WindowsBase (12)
Base\MS\Internal\WeakEventTable.cs (1)
424
Dispatcher.Invoke((Action)OnShutDown, DispatcherPriority.Send, CancellationToken.
None
, TimeSpan.FromMilliseconds(300));
Base\System\Windows\Threading\Dispatcher.cs (11)
562
Invoke(callback, DispatcherPriority.Send, CancellationToken.
None
, TimeSpan.FromMilliseconds(-1));
579
Invoke(callback, priority, CancellationToken.
None
, TimeSpan.FromMilliseconds(-1));
711
return Invoke(callback, DispatcherPriority.Send, CancellationToken.
None
, TimeSpan.FromMilliseconds(-1));
737
return Invoke(callback, priority, CancellationToken.
None
, TimeSpan.FromMilliseconds(-1));
874
return InvokeAsync(callback, DispatcherPriority.Normal, CancellationToken.
None
);
897
return InvokeAsync(callback, priority, CancellationToken.
None
);
955
return InvokeAsync(callback, DispatcherPriority.Normal, CancellationToken.
None
);
975
return InvokeAsync(callback, priority, CancellationToken.
None
);
1036
InvokeAsyncImpl(operation, CancellationToken.
None
);
1457
return InvokeImpl(operation, CancellationToken.
None
, timeout);
1477
CancellationToken ctTimeout = CancellationToken.
None
;