Project Name File Name Usage Source Code Link
RunJS JsPromise.cs task.ContinueWith(t => (object)Undefined.Value) Link To Source File
PrintChar ServiceFactory.cs compendiumClient.Login(username, password).ContinueWith(task => compendiumClient) Link To Source File
CouchDude GetFileTask.cs response.Content .CopyToAsync(tempFileWriteStream) .ContinueWith( copyTask => { copyTask.Wait(); // ensuring exception propagated (is it nessesary?) tempFileWriteStream.Close(); return tempFile; }) Link To Source File
Orders InvocationExtentions.cs parent.ContinueWith(task => { if (task.IsFaulted) return task; return TaskEx.Run(action); }) Link To Source File
dotnetUtils HttpClient.cs request.GetRequestStreamAsync() .ContinueWith(t => { body.CopyTo(t.Result); reportAndCheckToken(0.3); }) .ContinueWith(_ => { var response = request.GetResponse(); reportAndCheckToken(0.6); return response; }) Link To Source File
Mystique NotifierViewModel.cs Task.Factory.StartNew(() => Thread.Sleep(Setting.Instance.ExperienceProperty.TwitterActionNotifyShowLength)) .ContinueWith(_ => _notifications.Remove(nivm)) Link To Source File
tdameritrade StreamExtensions.cs stream.CopyStreamToStreamAsync(readData).ContinueWith(t => { t.PropagateExceptions(); return readData.ToArray(); }) Link To Source File
tdameritrade StreamExtensions.cs stream.CopyStreamToStreamAsync(readData).ContinueWith(t => { t.PropagateExceptions(); readData.Position = 0; return XDocument.Load(readData); }) Link To Source File
tdameritrade TDAClient.cs webRequest.PostDataAsync(data).ContinueWith(_ => { return webRequest.DownloadDataAsync().ContinueWith(result => { return Encoding.ASCII.GetString(result.Result); }); }) Link To Source File
tdameritrade TDAClient.cs webRequest.PostDataAsync(data).ContinueWith(_ => { return webRequest.DownloadXmlAsync(); }) Link To Source File
SwarmIntelligence StreamExtensions.cs stream.CopyStreamToStreamAsync(readData).ContinueWith(t => { t.PropagateExceptions(); return readData.ToArray(); }) Link To Source File
monodevelop OnlineTemplateService.cs up.ContinueWith (t => ProjectTemplateIndex.Load (ProjectTemplateIndexFile)) Link To Source File
nji NjiApi.cs task.ContinueWith(t => oneach(item_captured, t)) Link To Source File
ravendb AsyncServerClient.cs Task.Factory.FromAsync(request.BeginWrite, request.EndWrite,serializeObject, null) .ContinueWith(writeTask => request.ReadResponseJsonAsync() .ContinueWith(readJsonTask => { return readJsonTask.Result.Value("index"); })) Link To Source File
ravendb AsyncServerClient.cs request.ExecuteRequestAsync() .ContinueWith(task => { var aggregateException = task.Exception; if (aggregateException == null) return task; var e = aggregateException.ExtractSingleInnerException() as WebException; if (e == null) return task; var httpWebResponse = e.Response as HttpWebResponse; if (httpWebResponse != null && httpWebResponse.StatusCode == HttpStatusCode.NotFound) throw new InvalidOperationException("There is no index named: " + indexName, e); return task; }) Link To Source File
ravendb HttpJsonRequest.cs authorizeResponse .ContinueWith(_ => { _.Wait(); //throw on error return InternalReadResponseStringAsync(retries + 1); }) Link To Source File
ravendb AbstractDocumentQuery.cs TaskEx.Delay(100) .ContinueWith(_ => ExecuteActualQueryAsync()) Link To Source File
ravendb AsyncServerClient.cs httpJsonRequest.WriteAsync(postedData) .ContinueWith( task => { task.Wait();// will throw if write errored return httpJsonRequest.ReadResponseJsonAsync() .ContinueWith(replyTask => convention.CreateSerializer().Deserialize(new RavenJTokenReader(replyTask.Result))); }) Link To Source File
ravendb AsyncServerClient.cs request.WriteAsync(new JArray(keys).ToString(Formatting.None)) .ContinueWith(writeTask => request.ReadResponseJsonAsync()) Link To Source File
ravendb AsyncServerClient.cs request.ExecuteRequest() .ContinueWith(task => { var aggregateException = task.Exception; if (aggregateException == null) return task; var e = aggregateException.ExtractSingleInnerException() as WebException; if (e == null) return task; var httpWebResponse = e.Response as HttpWebResponse; if (httpWebResponse != null && httpWebResponse.StatusCode == HttpStatusCode.NotFound) throw new InvalidOperationException("There is no index named: " + indexName, e); return task; }) Link To Source File
ravendb AsyncServerClient.cs request.WriteAsync(document.ToString()) .ContinueWith(task => { if (task.Exception != null) throw new InvalidOperationException("Unable to write to server", task.Exception); return request.ReadResponseJsonAsync() .ContinueWith(task1 => { try { return convention.CreateSerializer().Deserialize(new RavenJTokenReader(task1.Result)); } catch (AggregateException e) { var webexception = e.ExtractSingleInnerException() as WebException; if (ShouldThrowForPutAsync(webexception)) throw; throw ThrowConcurrencyException(webexception); } catch (WebException e) { if (ShouldThrowForPutAsync(e)) throw; throw ThrowConcurrencyException(e); } }); }) Link To Source File
ravendb AsyncServerClient.cs webRequest.ExecuteRequest() .ContinueWith(task => { try { task.Wait(); // should throw if it is bad if (overwrite == false) throw new InvalidOperationException("Cannot put index: " + name + ", index already exists"); } catch (AggregateException e) { var webException = e.ExtractSingleInnerException() as WebException; if (ShouldThrowForPutIndexAsync(webException)) throw; } catch (WebException e) { if (ShouldThrowForPutIndexAsync(e)) throw; } var request = jsonRequestFactory.CreateHttpJsonRequest(this, requestUri, "PUT", credentials, convention); request.AddOperationHeaders(OperationsHeaders); var serializeObject = JsonConvert.SerializeObject(indexDef, new JsonEnumConverter()); return request .WriteAsync(serializeObject) .ContinueWith(writeTask => AttemptToProcessResponse(() => request .ReadResponseJsonAsync() .ContinueWith(readStrTask => AttemptToProcessResponse(() => { //NOTE: JsonConvert.DeserializeAnonymousType() doesn't work in Silverlight because the ctor is private! var obj = convention.CreateSerializer().Deserialize(new RavenJTokenReader(readStrTask.Result)); return obj.Index; }))) ).Unwrap(); }) Link To Source File
ravendb AsyncServerClient.cs request .WriteAsync(serializeObject) .ContinueWith(writeTask => AttemptToProcessResponse(() => request .ReadResponseJsonAsync() .ContinueWith(readStrTask => AttemptToProcessResponse(() => { //NOTE: JsonConvert.DeserializeAnonymousType() doesn't work in Silverlight because the ctor is private! var obj = convention.CreateSerializer().Deserialize(new RavenJTokenReader(readStrTask.Result)); return obj.Index; }))) ) Link To Source File
ravendb AsyncServerClient.cs req.WriteAsync(jArray.ToString(Formatting.None)) .ContinueWith(writeTask => req.ReadResponseJsonAsync()) Link To Source File
ravendb AsyncServerClient.cs request .WriteAsync(data) .ContinueWith(write => { if (write.Exception != null) throw new InvalidOperationException("Unable to write to server"); return request.ExecuteRequest(); }) Link To Source File
ravendb HttpJsonRequest.cs WaitForTask.ContinueWith(_ => webRequest .GetResponseAsync() .ConvertSecurityExceptionToServerNotFound() .AddUrlIfFaulting(webRequest.RequestUri) .ContinueWith(t => ReadStringInternal(() => t.Result)) .ContinueWith(task => RetryIfNeedTo(task, ReadResponseStringAsync)) .Unwrap()) Link To Source File
ravendb HttpJsonRequest.cs authorizeResponse .ContinueWith(task1 => { task1.Wait();// throw if error return generator(); }) Link To Source File
ravendb HttpJsonRequest.cs WaitForTask.ContinueWith(_ => webRequest .GetResponseAsync() .ConvertSecurityExceptionToServerNotFound() .AddUrlIfFaulting(webRequest.RequestUri) .ContinueWith(t => ReadResponse(() => t.Result, ConvertStreamToBytes)) .ContinueWith(task => RetryIfNeedTo(task, ReadResponseBytesAsync)) .Unwrap()) Link To Source File
ravendb HttpJsonRequest.cs WaitForTask.ContinueWith(_ => webRequest.GetRequestStreamAsync() .ContinueWith(task => { var dataStream = task.Result; var streamWriter = new StreamWriter(dataStream, Encoding.UTF8); return streamWriter.WriteAsync(data) .ContinueWith(writeTask => { streamWriter.Dispose(); dataStream.Dispose(); return writeTask; }).Unwrap(); }).Unwrap()) Link To Source File
ravendb HttpJsonRequest.cs streamWriter.WriteAsync(data) .ContinueWith(writeTask => { streamWriter.Dispose(); dataStream.Dispose(); return writeTask; }) Link To Source File
ravendb InvocationExtensions.cs parent.ContinueWith(task => { if (task.IsFaulted) return task; return TaskEx.Run(action); }) Link To Source File
ravendb InvocationExtensions.cs parent.ContinueWith(task => { if (task.IsFaulted) return task; return action(); }) Link To Source File
ravendb InvocationExtensions.cs enumerator.Current .ContinueWith(task => { task.Wait(); // would throw on error if (enumerator.MoveNext() == false) { enumerator.Dispose(); return task; } return ProcessTasks(enumerator); }) Link To Source File
ScoobyRom DataView2DModelGtk.cs task.ContinueWith (t => iconsCached = true) Link To Source File
ScoobyRom DataView3DModelGtk.cs task.ContinueWith ((t) => iconsCached = true) Link To Source File