Hi,
Having a possibility to run different processes at the same time no matter what kind of action they will do needs multithreading. You can use TPL to access great functionalities that
Task
class provides or use
Threads
in .Net, both solutions require to separate your downloading process in a different thread than the main thread (for example in WPF there is a GUI thread that in a normal way runs all other actions). So very simple you can try:
Thread in .Net:
var th = new Thread(ExecuteInForeground);
th.Start();
Thread.Sleep(1000);
Console.WriteLine("Main thread ({0}) exiting...",
Thread.CurrentThread.ManagedThreadId);
private static void ExecuteInForeground() {
Task in .Net:
Task taskA = new Task( () => Console.WriteLine("Hello from taskA."));
taskA.Start();
If this did not solve your problem then please leave a comment and I will assist you by improving my solution until your problem gets solved.
Cheers,
AH