I understand how Backgroundtask works, but how does it differ from the traditional desktop Backgroundworker?
Actually, does Backgroundworker behave the same in wisej as it does desktop? Should it be avoided and use Backgroundtask instead?
It’s always a thread. The issue is the session (context). Threads don’t know anything about the session. If you want to create a background task (thread, background worker, background task, they are all the same – just a thread) use Application.StartTask(). If you want to create a thread directly you have to restore the context.
There is a detailed explanation here: https://wisej.com/docs/html/BackgroundTasks.htm
Please login first to submit.