Archivi tag: thread

Execute multiple task and await all have completed

In this example I show how to do multiple call of a web service in async mode. serviceClient my own proxy class to contact the web service. This is the signature: This solution call the service and wait it complete … Continua a leggere

Pubblicato in .Net, c# | Contrassegnato , , , , | Lascia un commento

CultureInfo for any thread

Sometimes I need to set the CurrentThread Culture and the UI Culture, to avoid some problem in date or number conversion. By default I work on the same thread, but not today. With only this code you change the culture … Continua a leggere

Pubblicato in .Net, c# | Contrassegnato , , , , | Lascia un commento