Background task v's backgroundworker

0
0

Hi there,

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?

Thanks

Darren

  • You must to post comments
0
0

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

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.