Hi all,
I’m still new to wisej so forgive any silly questions.
I have a simple desktop app. performing some work in a BackGroundWorker.
Every so often the bgw calls a ProgressChanged and updates values in some labels.
However, although the background code is running, the labels aren’t updating/refreshing like they would in a traditional desktop app.
I expected them to just update. What am I doing wrong?
Am I going about background processing completely the wrong way?
Should I use Application.StartTask instead of a BackgroundWorker?
Thanks
Darren
In the web world servers have no way to update the browser without a request initiated by the browser. And background tasks (threads) have no connection to the the client. Wisej uses a websocket connection to allow the server to push the updates to the client, but you have to have websocket supported by your server.
Try this:
http://demo.wisej.com/ProgressSample
There is also more here:
https://wisej.com/docs/html/BackgroundTasks.htm
https://docs.microsoft.com/en-us/aspnet/signalr/overview/getting-started/supported-platforms
Hi,
Interesting. I just tried the wisej Sort example and this doesn’t refresh regularly either (on the same work machine).
I did try the sort program at home and this refreshed ok.
So, there appears to be something odd about my development PC!!!
I tried both in IE and in Chrome.
Any ideas, folks?
Thank you
Regards,
Darren
Please login first to submit.