1 type derived from TaskCompletionSource
mscorlib (1)
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (1)
474
private sealed class CompletionState :
TaskCompletionSource
<VoidTaskResult>
92 instantiations of TaskCompletionSource
System (20)
net\System\Net\mail\SmtpClient.cs (1)
731
var tcs = new
TaskCompletionSource
<object>();
net\System\Net\NetworkInformation\ping.cs (1)
545
var tcs = new
TaskCompletionSource
<PingReply>();
net\System\Net\webclient.cs (9)
2552
var tcs = new
TaskCompletionSource
<string>(address);
2582
var tcs = new
TaskCompletionSource
<Stream>(address);
2627
var tcs = new
TaskCompletionSource
<Stream>(address);
2676
var tcs = new
TaskCompletionSource
<string>(address);
2707
var tcs = new
TaskCompletionSource
<byte[]>(address);
2738
var tcs = new
TaskCompletionSource
<object>(address);
2787
var tcs = new
TaskCompletionSource
<byte[]>(address);
2836
var tcs = new
TaskCompletionSource
<byte[]>(address);
2888
var tcs = new
TaskCompletionSource
<byte[]>(address);
net\System\Net\WebSockets\WebSocketBase.cs (2)
809
m_CloseReceivedTaskCompletionSource = new
TaskCompletionSource
<object>();
1501
m_CloseReceivedTaskCompletionSource = new
TaskCompletionSource
<object>();
net\System\Net\WebSockets\WebSocketConnectionStream.cs (3)
656
m_WriteTaskCompletionSource = new
TaskCompletionSource
<object>();
708
m_WriteTaskCompletionSource = new
TaskCompletionSource
<object>();
767
m_ReadTaskCompletionSource = new
TaskCompletionSource
<int>();
net\System\Net\WebSockets\WebSocketHttpListenerDuplexStream.cs (4)
167
m_ReadTaskCompletionSource = new
TaskCompletionSource
<int>();
384
m_WriteTaskCompletionSource = new
TaskCompletionSource
<object>();
454
m_WriteTaskCompletionSource = new
TaskCompletionSource
<object>();
637
m_WriteTaskCompletionSource = new
TaskCompletionSource
<object>();
System.Data (52)
fx\src\data\System\Data\Common\AdapterUtil.cs (2)
55
TaskCompletionSource<T> completion = new
TaskCompletionSource
<T>();
61
TaskCompletionSource<T> completion = new
TaskCompletionSource
<T>();
fx\src\data\System\Data\Common\DBConnection.cs (1)
185
TaskCompletionSource<object> taskCompletionSource = new
TaskCompletionSource
<object>();
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (1)
179
TaskCompletionSource<DbConnectionInternal> source = new
TaskCompletionSource
<DbConnectionInternal>();
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (13)
1018
TaskCompletionSource<bool> tcs = new
TaskCompletionSource
<bool>();
1614
TaskCompletionSource<object> source = new
TaskCompletionSource
<object>();
1751
TaskCompletionSource<object> tcs = new
TaskCompletionSource
<object>();
2028
source = new
TaskCompletionSource
<object>();
2129
tcs = new
TaskCompletionSource
<object>();
2183
source = new
TaskCompletionSource
<object>();
2192
source = source ?? new
TaskCompletionSource
<object>();
2258
source = new
TaskCompletionSource
<object>();
2310
source = new
TaskCompletionSource
<object>();
2353
source = new
TaskCompletionSource
<object>();
2480
source = new
TaskCompletionSource
<object>();
2581
TaskCompletionSource<object> cancellableReconnectTS = new
TaskCompletionSource
<object>();
2666
source = new
TaskCompletionSource
<object>(); //creating the completion source/Task that we pass to application
fx\src\data\System\Data\SqlClient\SqlCommand.cs (13)
1254
TaskCompletionSource<object> globalCompletion = new
TaskCompletionSource
<object>(stateObject);
1255
TaskCompletionSource<object> localCompletion = new
TaskCompletionSource
<object>(stateObject);
1745
TaskCompletionSource<object> globalCompletion = new
TaskCompletionSource
<object>(stateObject);
1746
TaskCompletionSource<object> localCompletion = new
TaskCompletionSource
<object>(stateObject);
2138
TaskCompletionSource<object> globalCompletion = new
TaskCompletionSource
<object>(stateObject);
2139
TaskCompletionSource<object> localCompletion = new
TaskCompletionSource
<object>(stateObject);
2410
TaskCompletionSource<int> source = new
TaskCompletionSource
<int>();
2474
TaskCompletionSource<SqlDataReader> source = new
TaskCompletionSource
<SqlDataReader>();
2515
TaskCompletionSource<object> source = new
TaskCompletionSource
<object>();
2578
TaskCompletionSource<XmlReader> source = new
TaskCompletionSource
<XmlReader>();
3068
TaskCompletionSource<object> completion = new
TaskCompletionSource
<object>();
4282
TaskCompletionSource<object> completion = new
TaskCompletionSource
<object>();
4354
TaskCompletionSource<object> completion = new
TaskCompletionSource
<object>();
fx\src\data\System\Data\SqlClient\SqlConnection.cs (2)
1404
TaskCompletionSource<DbConnectionInternal> completion = new
TaskCompletionSource
<DbConnectionInternal>(transaction);
1405
TaskCompletionSource<object> result = new
TaskCompletionSource
<object>();
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (11)
3937
TaskCompletionSource<bool> source = new
TaskCompletionSource
<bool>();
4000
TaskCompletionSource<int> source = new
TaskCompletionSource
<int>();
4006
TaskCompletionSource<int> source = new
TaskCompletionSource
<int>();
4020
TaskCompletionSource<int> source = new
TaskCompletionSource
<int>();
4112
source = new
TaskCompletionSource
<int>();
4263
TaskCompletionSource<bool> source = new
TaskCompletionSource
<bool>();
4383
TaskCompletionSource<bool> source = new
TaskCompletionSource
<bool>();
4484
TaskCompletionSource<T> source = new
TaskCompletionSource
<T>();
4570
TaskCompletionSource<T> source = new
TaskCompletionSource
<T>();
4578
TaskCompletionSource<T> exceptionSource = new
TaskCompletionSource
<T>();
4613
TaskCompletionSource<T> source = new
TaskCompletionSource
<T>();
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (1)
157
TaskCompletionSource<int> completion = new
TaskCompletionSource
<int>();
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (1)
130
TaskCompletionSource<int> completion = new
TaskCompletionSource
<int>();
fx\src\data\System\Data\SqlClient\SqlUtil.cs (1)
38
TaskCompletionSource<object> completion = new
TaskCompletionSource
<object>();
fx\src\data\System\Data\SqlClient\TdsParser.cs (2)
8540
completion = new
TaskCompletionSource
<object>();
8586
completion = new
TaskCompletionSource
<object>();
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (4)
1916
ReadSni(new
TaskCompletionSource
<object>());
2680
_writeCompletionSource = new
TaskCompletionSource
<object>();
2766
completion = new
TaskCompletionSource
<object>();
2927
_writeCompletionSource = new
TaskCompletionSource
<object>();
System.ServiceModel (4)
System\ServiceModel\Channels\HttpPipeline.cs (1)
491
this.channelModelIntegrationHandlerTask = new
TaskCompletionSource
<HttpResponseMessage>();
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (2)
835
this.receiveTask = new
TaskCompletionSource
<object>();
854
this.streamWaitTask = new
TaskCompletionSource
<object>();
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
283
var tcs = new
TaskCompletionSource
<TResult>(state);
System.ServiceModel.Activation (2)
System\ServiceModel\Activation\HostedHttpContext.cs (2)
89
this.webSocketContextTaskSource = new
TaskCompletionSource
<WebSocketContext>();
119
this.webSocketWaitingTask = new
TaskCompletionSource
<object>();
System.ServiceModel.Discovery (2)
System\ServiceModel\Discovery\DiscoveryClient.cs (2)
438
TaskCompletionSource<FindResponse> taskCompletionSource = new
TaskCompletionSource
<FindResponse>();
459
TaskCompletionSource<ResolveResponse> taskCompletionSource = new
TaskCompletionSource
<ResolveResponse>();
System.ServiceModel.Internals (2)
System\Runtime\TaskExtensions.cs (2)
25
var tcs = new
TaskCompletionSource
<T>(state);
67
var tcs = new
TaskCompletionSource
<object>(state);
System.Web (9)
AspNetSynchronizationContextBase.cs (1)
44
TaskCompletionSource<object> tcs = new
TaskCompletionSource
<object>();
Hosting\ApplicationManager.cs (1)
647
TaskCompletionSource<ApplicationResumeStateContainer> tcs = new
TaskCompletionSource
<ApplicationResumeStateContainer>();
UI\PageAsyncTaskApm.cs (1)
34
TaskCompletionSource<object> taskCompletionSource = new
TaskCompletionSource
<object>();
Util\CountdownTask.cs (1)
21
private readonly TaskCompletionSource<object> _tcs = new
TaskCompletionSource
<object>();
Util\SynchronizationHelper.cs (2)
82
TaskCompletionSource<object> tcs = new
TaskCompletionSource
<object>();
181
TaskCompletionSource<Task> tcs = new
TaskCompletionSource
<Task>();
WebSockets\WebSocketPipe.cs (3)
40
TaskCompletionSource<object> tcs = new
TaskCompletionSource
<object>();
86
TaskCompletionSource<object> tcs = new
TaskCompletionSource
<object>();
119
TaskCompletionSource<WebSocketReceiveResult> tcs = new
TaskCompletionSource
<WebSocketReceiveResult>();
WindowsBase (1)
Base\System\Windows\Threading\DispatcherOperationTaskSource.cs (1)
29
_taskCompletionSource = new
TaskCompletionSource
<TResult>(new DispatcherOperationTaskMapping(operation));
165 references to TaskCompletionSource
mscorlib (10)
system\threading\Tasks\TaskCompletionSource.cs (10)
38
/// <see cref="
TaskCompletionSource
{TResult}">TaskCompletionSource</see> is provided for this purpose. It enables
47
/// All members of <see cref="
TaskCompletionSource
{TResult}"/> are thread-safe
52
/// cref="
TaskCompletionSource
{TResult}"/>.</typeparam>
59
/// Creates a <see cref="
TaskCompletionSource
{TResult}"/>.
67
/// Creates a <see cref="
TaskCompletionSource
{TResult}"/>
79
/// with a <see cref="
TaskCompletionSource
{TResult}"/>.
87
/// Creates a <see cref="
TaskCompletionSource
{TResult}"/>
98
/// Creates a <see cref="
TaskCompletionSource
{TResult}"/> with
107
/// with a <see cref="
TaskCompletionSource
{TResult}"/>.
117
/// by this <see cref="
TaskCompletionSource
{TResult}"/>.
System (24)
net\System\Net\mail\SmtpClient.cs (2)
731
var
tcs = new TaskCompletionSource<object>();
750
private void HandleCompletion(
TaskCompletionSource
<object> tcs, AsyncCompletedEventArgs e, SendCompletedEventHandler handler)
net\System\Net\NetworkInformation\ping.cs (3)
542
private Task<PingReply> SendPingAsyncCore(Action<
TaskCompletionSource
<PingReply>> sendAsync)
545
var
tcs = new TaskCompletionSource<PingReply>();
564
private void HandleCompletion(
TaskCompletionSource
<PingReply> tcs, PingCompletedEventArgs e, PingCompletedEventHandler handler)
net\System\Net\webclient.cs (10)
2552
var
tcs = new TaskCompletionSource<string>(address);
2582
var
tcs = new TaskCompletionSource<Stream>(address);
2627
var
tcs = new TaskCompletionSource<Stream>(address);
2676
var
tcs = new TaskCompletionSource<string>(address);
2707
var
tcs = new TaskCompletionSource<byte[]>(address);
2738
var
tcs = new TaskCompletionSource<object>(address);
2787
var
tcs = new TaskCompletionSource<byte[]>(address);
2836
var
tcs = new TaskCompletionSource<byte[]>(address);
2888
var
tcs = new TaskCompletionSource<byte[]>(address);
2908
private void HandleCompletion<TAsyncCompletedEventArgs, TCompletionDelegate, T>(
TaskCompletionSource
<T> tcs, TAsyncCompletedEventArgs e, Func<TAsyncCompletedEventArgs, T> getResult, TCompletionDelegate handler, Action<WebClient, TCompletionDelegate> unregisterHandler)
net\System\Net\WebSockets\WebSocketBase.cs (1)
54
private volatile
TaskCompletionSource
<object> m_CloseReceivedTaskCompletionSource;
net\System\Net\WebSockets\WebSocketConnectionStream.cs (4)
479
private
TaskCompletionSource
<object> m_WriteTaskCompletionSource;
480
private
TaskCompletionSource
<int> m_ReadTaskCompletionSource;
843
TaskCompletionSource
<int> readTaskCompletionSourceSnapshot = thisPtr.m_ReadTaskCompletionSource;
850
TaskCompletionSource
<object> writeTaskCompletionSourceSnapshot = thisPtr.m_WriteTaskCompletionSource;
net\System\Net\WebSockets\WebSocketHttpListenerDuplexStream.cs (4)
37
private
TaskCompletionSource
<object> m_WriteTaskCompletionSource;
38
private
TaskCompletionSource
<int> m_ReadTaskCompletionSource;
731
TaskCompletionSource
<int> readTaskCompletionSourceSnapshot = thisPtr.m_ReadTaskCompletionSource;
738
TaskCompletionSource
<object> writeTaskCompletionSourceSnapshot = thisPtr.m_WriteTaskCompletionSource;
System.Data (106)
fx\src\data\System\Data\Common\AdapterUtil.cs (2)
55
TaskCompletionSource
<T> completion = new TaskCompletionSource<T>();
61
TaskCompletionSource
<T> completion = new TaskCompletionSource<T>();
fx\src\data\System\Data\Common\DBConnection.cs (1)
185
TaskCompletionSource
<object> taskCompletionSource = new TaskCompletionSource<object>();
fx\src\data\System\Data\ProviderBase\DbConnectionClosed.cs (5)
65
internal override bool TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory,
TaskCompletionSource
<DbConnectionInternal> retry, DbConnectionOptions userOptions) {
75
internal override bool TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory,
TaskCompletionSource
<DbConnectionInternal> retry, DbConnectionOptions userOptions) {
109
internal override bool TryReplaceConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory,
TaskCompletionSource
<DbConnectionInternal> retry, DbConnectionOptions userOptions) {
113
internal override bool TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory,
TaskCompletionSource
<DbConnectionInternal> retry, DbConnectionOptions userOptions) {
154
internal override bool TryReplaceConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory,
TaskCompletionSource
<DbConnectionInternal> retry, DbConnectionOptions userOptions) {
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (2)
179
TaskCompletionSource
<DbConnectionInternal> source = new TaskCompletionSource<DbConnectionInternal>();
186
internal bool TryGetConnection(DbConnection owningConnection,
TaskCompletionSource
<DbConnectionInternal> retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, out DbConnectionInternal connection) {
fx\src\data\System\Data\ProviderBase\DbConnectionInternal.cs (3)
665
internal virtual bool TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory,
TaskCompletionSource
<DbConnectionInternal> retry, DbConnectionOptions userOptions) {
669
internal virtual bool TryReplaceConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory,
TaskCompletionSource
<DbConnectionInternal> retry, DbConnectionOptions userOptions) {
673
protected bool TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory,
TaskCompletionSource
<DbConnectionInternal> retry, DbConnectionOptions userOptions) {
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (3)
57
public PendingGetConnection(long dueTime, DbConnection owner,
TaskCompletionSource
<DbConnectionInternal> completion, DbConnectionOptions userOptions) {
64
public
TaskCompletionSource
<DbConnectionInternal> Completion { get; private set; }
1171
internal bool TryGetConnection(DbConnection owningObject,
TaskCompletionSource
<DbConnectionInternal> retry, DbConnectionOptions userOptions, out DbConnectionInternal connection) {
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (18)
1018
TaskCompletionSource
<bool> tcs = new TaskCompletionSource<bool>();
1614
TaskCompletionSource
<object> source = new TaskCompletionSource<object>();
1751
TaskCompletionSource
<object> tcs = new TaskCompletionSource<object>();
2018
private Task CopyColumnsAsync(int col,
TaskCompletionSource
<object> source = null) {
2050
private void CopyColumnsAsyncSetupContinuation(
TaskCompletionSource
<object> source, Task task, int i) {
2126
Task CheckForCancellation(CancellationToken cts,
TaskCompletionSource
<object> tcs) {
2139
private
TaskCompletionSource
<object> ContinueTaskPend(Task task,
TaskCompletionSource
<object> source, Func<
TaskCompletionSource
<object>> action) {
2147
TaskCompletionSource
<object> newSource = action();
2158
private Task CopyRowsAsync(int rowsSoFar, int totalRows, CancellationToken cts,
TaskCompletionSource
<object> source = null) {
2229
private Task CopyBatchesAsync(BulkCopySimpleResultSet internalResults, string updateBulkCommandText, CancellationToken cts,
TaskCompletionSource
<object> source = null) {
2294
private Task CopyBatchesAsyncContinued(BulkCopySimpleResultSet internalResults, string updateBulkCommandText, CancellationToken cts,
TaskCompletionSource
<object> source) {
2339
private Task CopyBatchesAsyncContinuedOnSuccess(BulkCopySimpleResultSet internalResults, string updateBulkCommandText, CancellationToken cts,
TaskCompletionSource
<object> source) {
2457
private void WriteToServerInternalRestContinuedAsync(BulkCopySimpleResultSet internalResults, CancellationToken cts,
TaskCompletionSource
<object> source) {
2554
private void WriteToServerInternalRestAsync(CancellationToken cts,
TaskCompletionSource
<object> source) {
2581
TaskCompletionSource
<object> cancellableReconnectTS = new TaskCompletionSource<object>();
2662
TaskCompletionSource
<object> source = null;
fx\src\data\System\Data\SqlClient\SqlCommand.cs (26)
136
TaskCompletionSource
<object> _reconnectionCompletionSource = null;
169
private
TaskCompletionSource
<object> _cachedAsyncResult = null;
213
internal void SetActiveConnectionAndResult(
TaskCompletionSource
<object> completion, string endMethod, SqlConnection activeConnection) {
1005
var
reconnectCompletionSource = _reconnectionCompletionSource;
1254
TaskCompletionSource
<object> globalCompletion = new TaskCompletionSource<object>(stateObject);
1255
TaskCompletionSource
<object> localCompletion = new TaskCompletionSource<object>(stateObject);
1312
private void BeginExecuteNonQueryInternalReadStage(
TaskCompletionSource
<object> completion) {
1434
var
reconnectionCompletionSource = _reconnectionCompletionSource;
1600
private Task InternalExecuteNonQuery(
TaskCompletionSource
<object> completion, string methodName, bool sendToPipe, int timeout, out bool usedCache, bool asyncWrite = false, bool inRetry = false) {
1745
TaskCompletionSource
<object> globalCompletion = new TaskCompletionSource<object>(stateObject);
1746
TaskCompletionSource
<object> localCompletion = new TaskCompletionSource<object>(stateObject);
1804
private void BeginExecuteXmlReaderInternalReadStage(
TaskCompletionSource
<object> completion) {
2138
TaskCompletionSource
<object> globalCompletion = new TaskCompletionSource<object>(stateObject);
2139
TaskCompletionSource
<object> localCompletion = new TaskCompletionSource<object>(stateObject);
2198
private bool TriggerInternalEndAndRetryIfNecessary(CommandBehavior behavior, object stateObject, int timeout, string endMethod, bool usedCache, bool inRetry, bool asyncWrite,
TaskCompletionSource
<object> globalCompletion,
TaskCompletionSource
<object> localCompletion, Func<IAsyncResult, string, bool, object> endFunc, Func<CommandBehavior, AsyncCallback, object, int, bool, bool, IAsyncResult> retryFunc) {
2301
private void BeginExecuteReaderInternalReadStage(
TaskCompletionSource
<object> completion) {
2410
TaskCompletionSource
<int> source = new TaskCompletionSource<int>();
2474
TaskCompletionSource
<SqlDataReader> source = new TaskCompletionSource<SqlDataReader>();
2515
TaskCompletionSource
<object> source = new TaskCompletionSource<object>();
2578
TaskCompletionSource
<XmlReader> source = new TaskCompletionSource<XmlReader>();
3068
TaskCompletionSource
<object> completion = new TaskCompletionSource<object>();
3281
private void PrepareForTransparentEncryption(CommandBehavior cmdBehavior, bool returnStream, bool async, int timeout,
TaskCompletionSource
<object> completion, out Task returnTask, bool asyncWrite, out bool usedCache, bool inRetry) {
4105
internal SqlDataReader RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, bool returnStream, string method,
TaskCompletionSource
<object> completion, int timeout, out Task task, out bool usedCache, bool asyncWrite = false, bool inRetry = false) {
4282
TaskCompletionSource
<object> completion = new TaskCompletionSource<object>();
4354
TaskCompletionSource
<object> completion = new TaskCompletionSource<object>();
fx\src\data\System\Data\SqlClient\SqlConnection.cs (10)
278
Tuple<
TaskCompletionSource
<DbConnectionInternal>, Task> _currentCompletion;
1404
TaskCompletionSource
<DbConnectionInternal> completion = new TaskCompletionSource<DbConnectionInternal>(transaction);
1405
TaskCompletionSource
<object> result = new TaskCompletionSource<object>();
1437
_currentCompletion = new Tuple<
TaskCompletionSource
<DbConnectionInternal>, Task>(completion, result.Task);
1455
TaskCompletionSource
<DbConnectionInternal> _retry;
1456
TaskCompletionSource
<object> _result;
1459
public OpenAsyncRetry(SqlConnection parent,
TaskCompletionSource
<DbConnectionInternal> retry,
TaskCompletionSource
<object> result, CancellationTokenRegistration registration) {
1516
private bool TryOpen(
TaskCompletionSource
<DbConnectionInternal> retry) {
1551
private bool TryOpenInner(
TaskCompletionSource
<DbConnectionInternal> retry) {
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (16)
816
var
networkPacketTaskSource = stateObj._networkPacketTaskSource;
1099
var
networkPacketTaskSource = stateObj._networkPacketTaskSource;
3937
TaskCompletionSource
<bool> source = new TaskCompletionSource<bool>();
4000
TaskCompletionSource
<int> source = new TaskCompletionSource<int>();
4006
TaskCompletionSource
<int> source = new TaskCompletionSource<int>();
4020
TaskCompletionSource
<int> source = new TaskCompletionSource<int>();
4099
TaskCompletionSource
<int> source = null;
4263
TaskCompletionSource
<bool> source = new TaskCompletionSource<bool>();
4383
TaskCompletionSource
<bool> source = new TaskCompletionSource<bool>();
4484
TaskCompletionSource
<T> source = new TaskCompletionSource<T>();
4567
TaskCompletionSource
<object> completionSource = _stateObj._networkPacketTaskSource;
4570
TaskCompletionSource
<T> source = new TaskCompletionSource<T>();
4578
TaskCompletionSource
<T> exceptionSource = new TaskCompletionSource<T>();
4613
TaskCompletionSource
<T> source = new TaskCompletionSource<T>();
4620
private Task<T> InvokeRetryable<T>(Func<Task, Task<T>> moreFunc,
TaskCompletionSource
<T> source, IDisposable objectToDispose = null) {
4648
private void CompleteRetryable<T>(Task<T> task,
TaskCompletionSource
<T> source, IDisposable objectToDispose) {
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (1)
2680
internal override bool TryReplaceConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory,
TaskCompletionSource
<DbConnectionInternal> retry, DbConnectionOptions userOptions) {
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (1)
157
TaskCompletionSource
<int> completion = new TaskCompletionSource<int>();
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (1)
130
TaskCompletionSource
<int> completion = new TaskCompletionSource<int>();
fx\src\data\System\Data\SqlClient\SqlUtil.cs (3)
38
TaskCompletionSource
<object> completion = new TaskCompletionSource<object>();
51
TaskCompletionSource
<object> completion,
169
internal static void SetTimeoutException(
TaskCompletionSource
<object> completion, int timeout, Func<Exception> exc, CancellationToken ctoken) {
fx\src\data\System\Data\SqlClient\TdsParser.cs (3)
1286
var
taskSource = stateObj._networkPacketTaskSource;
8045
TaskCompletionSource
<object> completion = null, int startRpc = 0, int startParam = 0) {
8688
private void ExecuteFlushTaskCallback(Task tsk, TdsParserStateObject stateObj,
TaskCompletionSource
<object> completion, bool releaseConnectionLock) {
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (11)
189
internal
TaskCompletionSource
<object> _networkPacketTaskSource;
216
volatile private
TaskCompletionSource
<object> _writeCompletionSource = null;
2017
var
taskSource = _networkPacketTaskSource;
2038
TaskCompletionSource
<object> source = _networkPacketTaskSource;
2114
internal void ReadSni(
TaskCompletionSource
<object> completion) {
2468
TaskCompletionSource
<object> source = _networkPacketTaskSource;
2523
private void ReadAsyncCallbackCaptureException(
TaskCompletionSource
<object> source) {
2569
var
writeCompletionSource = _writeCompletionSource;
2619
var
completionSource = _writeCompletionSource;
2725
internal Task WriteByteArray(Byte[] b, int len, int offsetBuffer, bool canAccumulate=true,
TaskCompletionSource
<object> completion = null) {
2803
private void WriteByteArraySetupContinuation(Byte[] b, int len,
TaskCompletionSource
<object> completion, int offset, Task packetTask) {
System.ServiceModel (7)
System\ServiceModel\Channels\HttpPipeline.cs (1)
395
TaskCompletionSource
<HttpResponseMessage> channelModelIntegrationHandlerTask;
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (2)
501
TaskCompletionSource
<object> streamWaitTask;
508
TaskCompletionSource
<object> receiveTask;
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (4)
283
var
tcs = new TaskCompletionSource<TResult>(state);
288
Tuple<
TaskCompletionSource
<TResult>, AsyncCallback> tuple = (Tuple<
TaskCompletionSource
<TResult>, AsyncCallback>)obj;
289
TaskCompletionSource
<TResult> tcsObj = tuple.Item1;
System.ServiceModel.Activation (2)
System\ServiceModel\Activation\HostedHttpContext.cs (2)
32
TaskCompletionSource
<object> webSocketWaitingTask;
34
TaskCompletionSource
<WebSocketContext> webSocketContextTaskSource;
System.ServiceModel.Discovery (4)
System\ServiceModel\Discovery\DiscoveryClient.cs (4)
438
TaskCompletionSource
<FindResponse> taskCompletionSource = new TaskCompletionSource<FindResponse>();
459
TaskCompletionSource
<ResolveResponse> taskCompletionSource = new TaskCompletionSource<ResolveResponse>();
1393
TaskCompletionSource
<TResult> taskCompletionSource;
1396
internal TaskAsyncOperationState(DiscoveryClient discoveryClient,
TaskCompletionSource
<TResult> taskCompletionSource, CancellationToken cancellationToken)
System.ServiceModel.Internals (2)
System\Runtime\TaskExtensions.cs (2)
25
var
tcs = new TaskCompletionSource<T>(state);
67
var
tcs = new TaskCompletionSource<object>(state);
System.Web (9)
AspNetSynchronizationContextBase.cs (1)
44
TaskCompletionSource
<object> tcs = new TaskCompletionSource<object>();
Hosting\ApplicationManager.cs (1)
647
TaskCompletionSource
<ApplicationResumeStateContainer> tcs = new TaskCompletionSource<ApplicationResumeStateContainer>();
UI\PageAsyncTaskApm.cs (1)
34
TaskCompletionSource
<object> taskCompletionSource = new TaskCompletionSource<object>();
Util\CountdownTask.cs (1)
21
private readonly
TaskCompletionSource
<object> _tcs = new TaskCompletionSource<object>();
Util\SynchronizationHelper.cs (2)
82
TaskCompletionSource
<object> tcs = new TaskCompletionSource<object>();
181
TaskCompletionSource
<Task> tcs = new TaskCompletionSource<Task>();
WebSockets\WebSocketPipe.cs (3)
40
TaskCompletionSource
<object> tcs = new TaskCompletionSource<object>();
86
TaskCompletionSource
<object> tcs = new TaskCompletionSource<object>();
119
TaskCompletionSource
<WebSocketReceiveResult> tcs = new TaskCompletionSource<WebSocketReceiveResult>();
WindowsBase (1)
Base\System\Windows\Threading\DispatcherOperationTaskSource.cs (1)
72
private
TaskCompletionSource
<TResult> _taskCompletionSource;