Last post Dec 10, 2014 09:57 PM by Shawn - MSFT
Dec 08, 2014 12:39 PM|neoaguil17|LINK
Hi I don't understand the work of this keywords.
For example in the service: I have this code
public async Task<bool> MeetingValidarRegistrosPendientes(int idMeeting)
return await Task.Factory.StartNew(() => LogicaMeeting.ValidarMattersPendientes(idMeeting));
But I generate a proxy: with : async operation and task-based
This is my code that call the service, is correct? because I saw that we call MeetingValidarRegistrosPendientes and don´t call MeetingValidarRegistrosPendientesAsync:
public static bool MeetingValidarRegistrosPendientes(int idMeeting)
using (var proxy = new ServicioProyectoClient())
return AgenteUtil.InvocarFuncion(proxy.MeetingValidarRegistrosPendientes, idMeeting);
I don´t understand how work that in this case.
Dec 10, 2014 02:12 PM|neoaguil17|LINK
I understand, We use concurrencyMode.Multiple for many cores attend the services method's, but We use async, task and await for when many users call: MeetingValidarRegistrosPendientes, and don´t have nails, in a moment many cpus attend all request
to a method( is more specific), because with await
will not have any nails.
Dec 10, 2014 09:57 PM|Shawn - MSFT|LINK
It's very glad to see you have figured the issue out and it's very grateful you could share the solution with us. And it would be helpful to other communities, and welcome to post your question in this forum in your future programming.
Besides, about Asynchronous Programming Model in WCF with async/await, you could also refer to the following links: