async-ctp Questions

14

Solved

Client iGame Channel = new ChannelFactory<iGame> ( new BasicHttpBinding ( BasicHttpSecurityMode . None ) , new EndpointAddress ( new Uri ( "http://localhost:58597/Game.svc" ) ) ) . CreateCha...
Kriegspiel asked 7/8, 2012 at 20:41

4

Solved

I tried to use the SwitchTo method today to switch to the GUI thread, and found that the example I lifted it from does not work, simply because the method is not there. I then found this blurb her...
Whether asked 12/3, 2013 at 14:5

4

Solved

Every variation on the following code that I try doesn't work - whether DoSomething() : void and is called as written, or DoSomething() : Task and is called with TaskEx.RunEx(), some attempt involv...
Mesencephalon asked 8/12, 2011 at 22:46

3

Solved

I have a token for various tasks and I need to better manage their cancellation, to be notified of a cancellation I can use: token.Register(RegisterMethod); How can I remove this "subscription"?...
Dakota asked 13/12, 2012 at 16:46

2

Solved

I want to add async support to current VS 2010 .NET 4.0 C# project I have found: Visual Studio Async CTP - http://www.microsoft.com/en-us/download/details.aspx?id=9983 Microsoft.Bcl.Async - http...
Surgery asked 15/5, 2013 at 4:44

3

Solved

What if you need to run multiple asynchronous I/O tasks in parallel but need to make sure that no more than X I/O processes are running at the same time; and pre and post I/O processing tasks...
Imaimage asked 29/5, 2012 at 14:37

3

Solved

What is the recommended way for adding postconditions to async methods which return Task<T>? I have read the following suggestion: http://social.msdn.microsoft.com/Forums/hu-HU/async/thread...
Sterile asked 6/2, 2012 at 17:18

2

I am currently working on a research project which involves indexing a large number of files (240k); they are mostly html, xml, doc, xls, zip, rar, pdf, and text with filesizes ranging from a few K...
Parboil asked 5/5, 2012 at 14:15

3

Solved

I'd like to use Task return from a method to return a the value when it becomes available at later time, so that the caller can either block using Wait or attach a continuation or even await it. Th...
Proclaim asked 27/5, 2011 at 21:43

3

I'm walking through this tutorial on how to program asynchronously in c# and have come across an error I'm not sure how to resolve. Here's the link: http://msdn.microsoft.com/en-us/library/hh191443...
Sephira asked 18/4, 2013 at 4:18

3

Yesterday I started playing with Microsoft CTP async library, and nowhere I could not find the proper implementation of the awaitable Task. I know that it must have implementation like this?: publ...
Mycology asked 7/8, 2011 at 8:48

3

Solved

During the Techdays here in the Netherlands Steve Sanderson gave a presentation about C#5, ASP.NET MVC 4, and asynchronous Web. He explained that when requests take a long time to finish, all the...
Dissociation asked 26/2, 2012 at 13:43

3

Solved

I downloaded Async CTP and installed it on my development machine, which has both VS 2010 and VS 2012. The installation seemed to have completed successfully (no errors). I created a brand new Win...
Loveridge asked 17/4, 2013 at 14:20

1

Solved

I'd like to use Visual Studio Async CTP (Version 3) for developing and testing in VS2010 SP1 on Windows XP SP3 mainly because my clients (as well as I) on Windows XP SP3. Ghere is a related discuss...
Cos asked 8/4, 2013 at 7:15

2

Solved

Task.Factory.StartNew() basically receives an Action and returns a Task. In The Async CTP we have TaskEx.Run() which also receives an Action and returns a Task. They seem to do that same thing. Why...
Wheatear asked 25/5, 2011 at 11:20

2

I totally understand that HTTP world is not the best choice for one-way calls and that WebApi is designed best for HTTP verbose communications. No doubt, WCF is the winner here. But, what if you al...

1

Solved

There are many reasons to put a token in the constructor of a task, mentioned here: Cancellation token in Task constructor: why? With the use of keywords, async / await, how is that working? for e...
Coach asked 11/12, 2012 at 15:14

4

I'm developing a .NET4-based application that has to request third-party servers in order to get information from them. I'm using HttpClient to make these HTTP requests. I have to create a hundred...
Overdraft asked 29/11, 2012 at 3:41

4

Solved

I was looking to see if the Async CTP with a portable class library?
Sylvanus asked 5/2, 2012 at 20:16

2

Solved

I know it is bad to call Task.Wait in UI thread. It causes a deadlock. Please refer to Constructor invoke async method Await, and UI, and deadlocks! Oh my! Take the following code: public Mai...
Daliladalis asked 16/11, 2012 at 6:4

2

Solved

Consider this, Task task = new Task (async () =>{ await TaskEx.Delay(1000); }); task.Start(); task.Wait(); The call task.Wait() does not wait for the task completion and the next line is e...
Boer asked 24/10, 2012 at 9:9

2

The flow containing await in .NET 4.5 and Async CTP 4.0 can be stuck due to various reasons, e.g. since the remote client has not responded. Of course, WaitForAny, when we wait also for some timeou...
Inmesh asked 18/10, 2012 at 11:17

3

Solved

I am trying to rewrite a project into a Portable Class Library. But the problem is that it is using Async CTP, and I can't compile it as a library for WP and Windows Store App. If I don't include r...

3

Solved

Due to work restrictions, I need to continue using Visual Studio 2010 for the immediate future. At the same time, I have been learning about Async in my personal coding. Is the latest Async CTP ful...

3

Solved

In .NET 4, is there any functional equivalent to .NET 4.5's System.Threading.Tasks.Task.WhenAll()? The goal is to wrap up multiple async tasks into a single one that is completed when all of its c...
Baddie asked 16/7, 2012 at 21:7

© 2022 - 2024 — McMap. All rights reserved.