93 references to Result
mscorlib (28)
system\io\bufferedstream.cs (1)
656
if (t != null && t.
Result
== val)
system\io\memorystream.cs (1)
397
return (t != null && t.
Result
== n) ? t : (_lastReadTask = Task.FromResult<int>(n));
system\io\unmanagedmemorystream.cs (1)
466
return (t != null && t.
Result
== n) ? t : (_lastReadTask = Task.FromResult<Int32>(n));
system\runtime\compilerservices\AsyncMethodBuilder.cs (1)
716
EqualityComparer<TResult>.Default.Equals(result, Contract.Result<Task<TResult>>().
Result
),
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (1)
630
return t.
Result
;
system\threading\Tasks\Future.cs (11)
87
internal static readonly Func<Task<Task>, Task<TResult>> TaskWhenAnyCast = completed => (Task<TResult>)completed.
Result
;
130
/// the task's <see cref="
Result
"/> property will be set to return the result value of the function.
150
/// the task's <see cref="
Result
"/> property will be set to return the result value of the function.
173
/// the task's <see cref="
Result
"/> property will be set to return the result value of the function.
199
/// the task's <see cref="
Result
"/> property will be set to return the result value of the function.
229
/// the task's <see cref="
Result
"/> property will be set to return the result value of the function.
249
/// the task's <see cref="
Result
"/> property will be set to return the result value of the function.
273
/// the task's <see cref="
Result
"/> property will be set to return the result value of the function.
302
/// the task's <see cref="
Result
"/> property will be set to return the result value of the function.
527
/// immediately on later calls to <see cref="
Result
"/>.
1661
public TResult Result { get { return m_task.Status == TaskStatus.RanToCompletion ? m_task.
Result
: default(TResult); } }
system\threading\Tasks\FutureFactory.cs (8)
1854
return ((Func<Task[], TResult>)state)(completedTasks.
Result
);
1868
((Action<Task[]>)state)(completedTasks.
Result
); return default(TResult);
2201
(completedTask, state) => { return ((Func<Task, TResult>)state)(completedTask.
Result
); },
2210
(completedTask, state) => { ((Action<Task>)state)(completedTask.
Result
); return default(TResult); },
2271
var arg = (Task<TAntecedentResult>)wrappedWinner.
Result
;
2280
var arg = (Task<TAntecedentResult>)wrappedWinner.
Result
;
2291
return func(wrappedAntecedents.
Result
);
2300
action(wrappedAntecedents.
Result
);
system\threading\Tasks\Task.cs (4)
5497
signaledTaskIndex = Array.IndexOf(tasks, firstCompleted.
Result
);
7258
taskOfTaskOfTResult.
Result
: ((Task<Task>)task).
Result
);
7308
result = TrySetResult(taskTResult != null ? taskTResult.
Result
: default(TResult));
System.Data (18)
fx\src\data\System\Data\ProviderBase\DbConnectionClosed.cs (1)
126
DbConnectionInternal openConnection = retry.Task.
Result
;
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (3)
279
if (retry.TrySetResult(task.
Result
)) {
286
task.
Result
.DoomThisConnection();
287
task.
Result
.Dispose();
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (2)
1006
_hasMoreRowToCopy = t.
Result
;
2642
AsyncHelper.ContinueTask(internalResultsTask, source, () => WriteToServerInternalRestContinuedAsync(internalResultsTask.
Result
, cts, source), _connection.GetOpenTdsConnection());
fx\src\data\System\Data\SqlClient\SqlCommand.cs (8)
2228
globalCompletion.TrySetResult(tsk.
Result
);
2282
globalCompletion.TrySetResult(retryTsk.
Result
);
2436
source.SetResult(t.
Result
);
2453
return result.
Result
;
2500
source.SetResult(t.
Result
);
2523
SqlDataReader reader = executeTask.
Result
;
2538
bool more = readTask.
Result
;
2604
source.SetResult(t.
Result
);
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
4670
source.TrySetResult(task.
Result
);
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (2)
150
return readTask.
Result
;
223
completion.SetResult((int)t.
Result
);
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (1)
193
int bytesReadFromStream = t.
Result
;
System.ServiceModel (20)
System\ServiceModel\Channels\HttpPipeline.cs (6)
466
if (this.transportIntegrationHandlerTask.
Result
!= null)
468
this.httpOutput.Send(this.transportIntegrationHandlerTask.
Result
, helper.RemainingTime());
611
if (t.
Result
!= null)
619
this.SendAndClose(t.
Result
);
623
this.asyncSendCallback.Invoke(this.asyncSendState, t.
Result
);
788
HttpResponseMessage response = this.transportIntegrationHandlerTask.
Result
;
System\ServiceModel\Channels\HttpRequestContext.cs (2)
518
this.OnAcceptWebSocketSuccess(acceptTask.
Result
, response.RequestMessage);
1140
this.context.OnAcceptWebSocketSuccess(acceptTask.
Result
, response.RequestMessage);
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (10)
669
result = receiveTask.
Result
;
882
WebSocketReceiveResult result = receiveTask.
Result
;
1195
this.endOfMessageReached = t.
Result
.EndOfMessage;
1197
int receivedBytes = t.
Result
.Count;
1198
CheckResultAndEnsureNotCloseMessage(this.messageSource, t.
Result
);
1223
return task.
Result
;
1263
if (task.
Result
.EndOfMessage)
1269
receivedBytes = task.
Result
.Count;
1270
CheckResultAndEnsureNotCloseMessage(this.messageSource, task.
Result
);
1470
this.endofMessageReceived = receiveTask.
Result
.EndOfMessage;
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (2)
110
tuple = invokeTask.
Result
;
302
tcsObj.TrySetResult(antecedent.
Result
);
System.ServiceModel.Internals (2)
System\Runtime\TaskExtensions.cs (2)
42
tcs.TrySetResult(t.
Result
);
194
Task.FromResult((TBase)task.
Result
) :
System.Web (4)
Hosting\ApplicationManager.cs (1)
623
ApplicationResumeStateContainer[] resumeContainers = Task.WhenAll(allAppDomainContexts.Select(CreateSuspendTask)).
Result
;
UI\WebControls\ModelDataSourceView.cs (1)
842
affectedRecords = operationTaskInt.
Result
;
WebSocketPipeline.cs (2)
47
Task abortTask = webSocketTask.ContinueWith(task => (task.
Result
!= null) ? ((AspNetWebSocket)task.
Result
).AbortAsync() : (Task)null, TaskContinuationOptions.ExecuteSynchronously).Unwrap();
System.Xml (21)
System\Xml\AsyncHelper.cs (1)
83
if (task.
Result
)
System\Xml\Core\XmlTextReaderImpl.cs (1)
671
stream = (Stream)t.
Result
;
System\Xml\Core\XmlTextReaderImplAsync.cs (18)
264
return ReadAsync_SwitchToInteractiveXmlDecl_Helper(task.
Result
);
348
if (!task.
Result
) {
399
if (!task.
Result
) {
466
if (!task.
Result
) {
517
if (!task.
Result
) {
1534
if (task.
Result
) {
1787
var tuple_4 = task.
Result
;
2717
var tuple_10 = parseTextTask.
Result
;
3150
return parseText_dummyTask.
Result
;
3166
return parseText_dummyTask.
Result
;
3189
return parseText_dummyTask.
Result
;
3198
return parseText_dummyTask.
Result
;
3206
return parseText_dummyTask.
Result
;
3215
return parseText_dummyTask.
Result
;
3229
return parseText_dummyTask.
Result
;
3244
return parseText_dummyTask.
Result
;
3256
return parseText_dummyTask.
Result
;
3265
return parseText_dummyTask.
Result
;
System\Xml\Core\XsdValidatingReaderAsync.cs (1)
177
if (task.
Result
) {