await SearchDevices(); await SearchGuides(); await SearchProduct();
--
--
Você recebeu esta mensagem por fazer parte da lista de discussão oficial da Comunidade NetPonto (http://netponto.org).
---
Recebeu esta mensagem porque está inscrito no grupo "NetPonto.org - Lista de Discussao Oficial" dos Grupos do Google.
Para anular a subscrição deste grupo e parar de receber emails deste grupo, envie um email para netponto+u...@googlegroups.com.
Para mais opções, consulte https://groups.google.com/groups/opt_out.
Task[] tasks = new Task[3]; //await SearchDevices(); //await SearchGuides(); //await SearchProduct(); tasks[0] = SearchDevices(); tasks[1] = SearchGuides(); tasks[2] = SearchProduct(); try { Task.WaitAll(tasks); } catch (Exception ex) { throw ex; }
Task[] tasks = new Task
[3]; tasks[0] = SearchDevices(); tasks[1] = SearchGuides(); tasks[2] = SearchProduct(); try { await Task.WhenAll(tasks); } catch (Exception ex) { throw ex; }
var tasks = new[] { Task.Factory.StartNew(SearchDevices()), Task.Factory.StartNew(SearchGuides()), Task.Factory.StartNew(SearchProducts()) };Ou
Task[] tasks = new[] { Task.Factory.StartNew(SearchDevices()), Task.Factory.StartNew(SearchGuides()), Task.Factory.StartNew(SearchProducts()) };