preguntar acerca de async-ctp

7
réponses

Tâche ne contient pas de définition pour ‘GetAwaiter’

Client iGame Channel = new ChannelFactory<iGame> ( new BasicHttpBinding ( BasicHttpSecurityMode . None ) , new EndpointAddress ( new Uri ( "http://localhost:58597/Game.svc" ) ) ) . CreateChannel ( ); public Task<SerializableDynamicObject&g …
demandé sur 1970-01-01 00:33:32
3
réponses

Exécuter une fonction async dans un autre thread

j'évalue le CTP Async. Comment puis-je commencer l'exécution d'une fonction async sur le thread d'un autre pool de threads? static async Task Test() { // Do something, await something } static void Main( string[] args ) { // …
demandé sur 1970-01-01 00:33:31