Project Name File Name Usage Source Code Link
instatus TaskExtensions.cs task.ContinueWith(c => { var ignored = c.Exception; }, TaskContinuationOptions.OnlyOnFaulted | TaskContinuationOptions.ExecuteSynchronously) Link To Source File
CouchDude ExploratoryTests.cs Task.Factory .StartNew(() => Thread.Sleep(1000)) .ContinueWith( _ => { Thread.Sleep(1000); innerTaskContinuationFishTime = stopwatch.ElapsedTicks; }, TaskContinuationOptions.AttachedToParent) Link To Source File
Castle.Transactions TaskExtensions.cs task.ContinueWith(c => { var ignored = c.Exception; }, TaskContinuationOptions.OnlyOnFaulted | TaskContinuationOptions.ExecuteSynchronously) Link To Source File
coapp AsyncDownloader.cs enumerator.Current.ContinueWith(recursiveBody, TaskContinuationOptions.AttachedToParent | TaskContinuationOptions.ExecuteSynchronously) Link To Source File
coapp CoTask.cs enumerator.Current.ContinueWith(recursiveBody, TaskContinuationOptions.AttachedToParent | TaskContinuationOptions.ExecuteSynchronously) Link To Source File
coapp EngineService.cs _engineService.ContinueWith(antecedent => { _isRunning = false; // ensure the sessions are all getting closed. Session.CancelAll(); _engineService = null; }, TaskContinuationOptions.AttachedToParent) Link To Source File
coapp EngineService.cs Task.Factory.FromAsync(responsePipe.BeginWaitForConnection, responsePipe.EndWaitForConnection, responsePipe, TaskCreationOptions.AttachedToParent).ContinueWith(t => { if (responsePipe.IsConnected) { Session.Start(clientId, sessionId, serverPipe, responsePipe); } }, TaskContinuationOptions.AttachedToParent) Link To Source File
coapp Session.cs _responsePipe.WriteLineAsync(message.ToString()).ContinueWith(antecedent => QueueResponseMessage(message), TaskContinuationOptions.OnlyOnFaulted) Link To Source File
devtools Listener.cs handlerTask.ContinueWith( (antecedent2) => { if (antecedent2.IsFaulted && antecedent2.Exception != null) { var e = antecedent2.Exception.InnerException; Console.WriteLine("{0} -- {1}/r/n{2}", e.GetType(), e.Message, e.StackTrace); response.StatusCode = 500; } response.Close(); }, TaskContinuationOptions.AttachedToParent) Link To Source File
_bootstrapperui_deprecated AsyncDownloader.cs enumerator.Current.ContinueWith(recursiveBody, TaskContinuationOptions.AttachedToParent | TaskContinuationOptions.ExecuteSynchronously) Link To Source File
_toolkit_deprecated CoTask.cs enumerator.Current.ContinueWith(recursiveBody, TaskContinuationOptions.AttachedToParent | TaskContinuationOptions.ExecuteSynchronously) Link To Source File
_toolkit_deprecated EngineService.cs _engineService.ContinueWith(antecedent => { _isRunning = false; // ensure the sessions are all getting closed. Session.CancelAll(); _engineService = null; }, TaskContinuationOptions.AttachedToParent) Link To Source File
_toolkit_deprecated EngineService.cs Task.Factory.FromAsync(responsePipe.BeginWaitForConnection, responsePipe.EndWaitForConnection, responsePipe, TaskCreationOptions.AttachedToParent).ContinueWith(t => { if (responsePipe.IsConnected) { Session.Start(clientId, sessionId, serverPipe, responsePipe); } }, TaskContinuationOptions.AttachedToParent) Link To Source File
_toolkit_deprecated Session.cs _responsePipe.WriteLineAsync(message.ToString()).ContinueWith(antecedent => QueueResponseMessage(message), TaskContinuationOptions.OnlyOnFaulted) Link To Source File
FhvRoomSearch MainViewModel.cs Task.Factory.StartNew(() => DoReloadCourses(url)).ContinueWith( t => { if (_showCalendarViewerAfterReload) { RequestNewCalendarUrl(true); } }, TaskContinuationOptions.ExecuteSynchronously) Link To Source File
fubumvc AsyncContinueWithBehavior.cs task.ContinueWith(x => { if (InsideBehavior != null) behaviorAction(InsideBehavior); }, TaskContinuationOptions.AttachedToParent | TaskContinuationOptions.NotOnFaulted) Link To Source File
fubumvc AsyncBehaviorInvoker.cs task.ContinueWith(x => disposable.Dispose(), TaskContinuationOptions.AttachedToParent) Link To Source File
GiveCRM GeneratorWindow.xaml.cs Task.Factory.StartNew(() => SetGenerateButtonsState(false), CancellationToken.None, TaskCreationOptions.None, uiContext) .ContinueWith(_ => generationCallback(), TaskContinuationOptions.LongRunning) Link To Source File
lokad-cloud AzureUpdater.cs task.ContinueWith(t => { if (t.IsCompleted) { deployment.InstanceCount = instanceCount; } else if (t.IsFaulted) { // Ensure the Task doesn't throw at finalization var exception = t.Exception.GetBaseException(); // TODO (ruegg, 2011-05-19): report error to the user } }, TaskContinuationOptions.ExecuteSynchronously) Link To Source File
lokad-cloud-provisioning TaskExtensions.cs task.ContinueWith(t => { if (!t.IsFaulted) { return; } var exception = t.Exception; if (exception == null || observer == null) { return; } try { observer.Notify(handler(exception)); } // ReSharper disable EmptyGeneralCatchClause catch // ReSharper restore EmptyGeneralCatchClause { // Suppression is intended: we can't log but also don't want to tear down just because of a failed notification. // Also, this is not where exceptions are handled in the first place, since the failed tasks are returned to the application. } }, TaskContinuationOptions.OnlyOnFaulted | TaskContinuationOptions.ExecuteSynchronously) Link To Source File
lokad-cloud-storage QueueStorageProvider.cs task.ContinueWith(obj => NotifySucceeded(StorageOperationType.QueuePut, stopwatch), TaskContinuationOptions.OnlyOnRanToCompletion) Link To Source File
LoreSoft.Shared TaskExtensions.cs task.ContinueWith(t => { timer.Dispose(); result.TrySetFromTask(t); }, TaskContinuationOptions.ExecuteSynchronously) Link To Source File
taco TaskExtensions.cs task.ContinueWith(t => continuation(), TaskContinuationOptions.AttachedToParent | TaskContinuationOptions.OnlyOnRanToCompletion | TaskContinuationOptions.ExecuteSynchronously) Link To Source File
taco TaskExtensions.cs task.ContinueWith(t => { if (t.IsFaulted) handler(t.Exception); }, TaskContinuationOptions.AttachedToParent | TaskContinuationOptions.ExecuteSynchronously) Link To Source File
taco TaskExtensions.cs task.ContinueWith(t => continuation(), TaskContinuationOptions.AttachedToParent | TaskContinuationOptions.ExecuteSynchronously) Link To Source File
SuperSocket Async.cs Task.Factory.StartNew(task, taskOption).ContinueWith(t => { if (exceptionHandler != null) exceptionHandler(t.Exception); else LogFactoryProvider.GlobalLog.Error(t.Exception); }, TaskContinuationOptions.OnlyOnFaulted) Link To Source File
SuperSocket Async.cs Task.Factory.StartNew(task, state, taskOption).ContinueWith(t => { if (exceptionHandler != null) exceptionHandler(t.Exception); else LogFactoryProvider.GlobalLog.Error(t.Exception); }, TaskContinuationOptions.OnlyOnFaulted) Link To Source File
SuperSocket Async.cs Task.Factory.StartNew(task, taskOption).ContinueWith(t => { if (exceptionHandler != null) exceptionHandler(t.Exception); else LogUtil.LogError(t.Exception); }, TaskContinuationOptions.OnlyOnFaulted) Link To Source File
SuperSocket Async.cs Task.Factory.StartNew(task, state, taskOption).ContinueWith(t => { if (exceptionHandler != null) exceptionHandler(t.Exception); else LogUtil.LogError(t.Exception); }, TaskContinuationOptions.OnlyOnFaulted) Link To Source File
SwarmIntelligence FileAsync.cs asyncWrite.ContinueWith(t => { var e = t.Exception; fs.Close(); if (e != null) throw e; }, TaskContinuationOptions.ExecuteSynchronously) Link To Source File
SwarmIntelligence StreamExtensions.cs CopyStreamToStreamAsync(source, destinationStream).ContinueWith(t => { var e = t.Exception; destinationStream.Close(); if (e != null) throw e; }, TaskContinuationOptions.ExecuteSynchronously) Link To Source File
SwarmIntelligence TaskExtensions.cs task.ContinueWith(t => { timer.Dispose(); result.TrySetFromTask(t); }, TaskContinuationOptions.ExecuteSynchronously) Link To Source File
WCFWeb NotificationSender.cs // fire and forget Task.Factory.StartNew((object addressObject) => this.CallNotificationServices(notificationEvents, (Uri)addressObject), address) .ContinueWith( (antecedents) => { // ManagementEtwProvider.Provider.EventWriteThrowingException(antecedents.Exception.ToString()); }, TaskContinuationOptions.OnlyOnFaulted) Link To Source File
WCFWeb HttpClient.cs response.Content.LoadIntoBufferAsync(maxResponseContentBufferSize).ContinueWith(contentTask => { try { // Make sure to dispose the CTS _before_ setting TaskCompletionSource. Otherwise the task will be // completed and the user may dispose the user CTS on the continuation task leading to a race cond. bool isCancellationRequested = cancellationTokenSource.Token.IsCancellationRequested; // contentTask.Exception is always != null if IsFaulted is true. However, we need to access the // Exception property, otherwise the Task considers the excpetion as "unhandled" and will throw in // its finalizer. if (contentTask.IsFaulted) { // If the cancellation token was canceled, we consider the exception to be caused by the // cancellation (e.g. WebException when reading from canceled response stream). if (isCancellationRequested && (contentTask.Exception.GetBaseException() is HttpException)) { SetTaskCanceled(request, cancellationTokenSource, tcs); } else { SetTaskFaulted(request, cancellationTokenSource, tcs, contentTask.Exception.GetBaseException()); } return; } if (contentTask.IsCanceled) { SetTaskCanceled(request, cancellationTokenSource, tcs); return; } // When buffering content is completed, set the Task as completed. SetTaskCompleted(request, cancellationTokenSource, tcs, response); } catch (Exception e) { // Make sure we catch any exception, otherwise the task will catch it and throw in the finalizer. tcs.TrySetException(e); } }, TaskContinuationOptions.ExecuteSynchronously) Link To Source File
WCFWeb HttpClientChannel.cs state.requestMessage.Content.CopyToAsync(requestStream, context).ContinueWith(task => { try { if (task.IsFaulted) { HandleException(state.tcs, state.cancellationToken, task.Exception.GetBaseException()); return; } if (task.IsCanceled) { state.tcs.TrySetCanceled(); return; } state.requestStream.Close(); state.webRequest.BeginGetResponse(getResponseCallback, state); } catch (Exception e) { HandleException(state.tcs, state.cancellationToken, e); } }, TaskContinuationOptions.ExecuteSynchronously) Link To Source File
WCFWeb HttpContent.cs // If the copy operation fails, wrap the exception in an HttpException() if appropriate. task.ContinueWith(copyTask => { if (copyTask.IsFaulted) { tcs.TrySetException(GetStreamCopyException(copyTask.Exception.GetBaseException())); } else if (copyTask.IsCanceled) { tcs.TrySetCanceled(); } else { tcs.TrySetResult(null); } }, TaskContinuationOptions.ExecuteSynchronously) Link To Source File
WCFWeb HttpContent.cs task.ContinueWith(copyTask => { try { if (copyTask.IsFaulted) { tempBuffer.Dispose(); // Cleanup partially filled stream. tcs.TrySetException(GetStreamCopyException(copyTask.Exception.GetBaseException())); return; } if (copyTask.IsCanceled) { tempBuffer.Dispose(); // Cleanup partially filled stream. tcs.TrySetCanceled(); return; } bufferedContent = tempBuffer; tcs.TrySetResult(null); } catch (Exception e) { // Make sure we catch any exception, otherwise the task will catch it and throw in the finalizer. tcs.TrySetException(e); } // Since we're not doing any CPU and/or I/O intensive operations, continue on the same thread. // This results in better performance since the continuation task doesn't get scheduled by the // scheduler and there are no context switches required. }, TaskContinuationOptions.ExecuteSynchronously) Link To Source File
WCFWeb MultipartContent.cs // Start Boundary, chain everything else EncodeStringToStreamAsync(outputStream, "--" + boundary + crlf) .ContinueWith(WriteNextContentHeadersAsync, TaskContinuationOptions.ExecuteSynchronously) Link To Source File
WCFWeb MultipartContent.cs EncodeStringToStreamAsync(outputStream, output.ToString()) .ContinueWith(WriteNextContentAsync, TaskContinuationOptions.ExecuteSynchronously) Link To Source File
WCFWeb MultipartContent.cs content.CopyToAsync(outputStream) .ContinueWith(WriteNextContentHeadersAsync, TaskContinuationOptions.ExecuteSynchronously) Link To Source File
WCFWeb MultipartContent.cs EncodeStringToStreamAsync(outputStream, crlf + "--" + boundary + "--") .ContinueWith(task => { if (task.IsFaulted) { HandleAsyncException("WriteTerminatingBoundaryAsync", task.Exception.GetBaseException()); return; } tcs.TrySetResult(null); // This was the final opperation CleanupAsync(); }, TaskContinuationOptions.ExecuteSynchronously) Link To Source File
OG-DotNet MarketDataSnapshotManagerTests.cs ((Task)task).ContinueWith(t => { var ignore = t.Exception; }, TaskContinuationOptions.OnlyOnFaulted) Link To Source File
OG-DotNet ParallelCommandGroup.cs next.ContinueWith(t => { var ignore = t.Exception; }, TaskContinuationOptions.OnlyOnFaulted) Link To Source File
kudu TaskExtensions.cs task.ContinueWith(t => { if (t.IsFaulted) { Trace.TraceError(t.Exception.Message); handler(t.Exception); } }, TaskContinuationOptions.OnlyOnFaulted) Link To Source File
ravenmq TaskExtensions.cs task.ContinueWith(c => GC.KeepAlive(c.Exception), TaskContinuationOptions.ExecuteSynchronously) Link To Source File
Roger DefaultConsumingProcess.cs consumingTask.ContinueWith(task => StartConsuming(connection), TaskContinuationOptions.AttachedToParent) Link To Source File
Fleck SocketWrapper.cs task.ContinueWith(t => callback(), TaskContinuationOptions.NotOnFaulted) .ContinueWith(t => error(t.Exception), TaskContinuationOptions.OnlyOnFaulted) Link To Source File
Fleck SocketWrapper.cs task.ContinueWith(t => callback(), TaskContinuationOptions.NotOnFaulted) Link To Source File
Fleck SocketWrapper.cs task.ContinueWith(t => error(t.Exception), TaskContinuationOptions.OnlyOnFaulted) Link To Source File
Fleck SocketWrapper.cs task.ContinueWith(t => callback(t.Result), TaskContinuationOptions.NotOnFaulted) .ContinueWith(t => error(t.Exception), TaskContinuationOptions.OnlyOnFaulted) Link To Source File
Fleck SocketWrapper.cs task.ContinueWith(t => callback(t.Result), TaskContinuationOptions.OnlyOnRanToCompletion) .ContinueWith(t => error(t.Exception), TaskContinuationOptions.OnlyOnFaulted) Link To Source File
Fleck SocketWrapper.cs task.ContinueWith(t => callback(), TaskContinuationOptions.NotOnFaulted) .ContinueWith(t => error(t.Exception), TaskContinuationOptions.OnlyOnFaulted) Link To Source File
Fleck SocketWrapper.cs task.ContinueWith(t => callback(), TaskContinuationOptions.NotOnFaulted) Link To Source File
Fleck SocketWrapper.cs task.ContinueWith(t => error(t.Exception), TaskContinuationOptions.OnlyOnFaulted) Link To Source File
WCell TaskExtensions.cs task.ContinueWith(t => { timer.Dispose(); result.TrySetFromTask(t); }, TaskContinuationOptions.ExecuteSynchronously) Link To Source File