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