You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is it possible to start a background worker (BW) without active session ?
I would like to start a complex evaluation on the server at night when usually no users are active. In the examples for the BW, there must be at least one active user for the BW to start."
usually, Web servers don’t do anything without a browser request.
IIS has a way to preload an assembly on startup and possibly invoke a method to register a module.
It´s maybe possible to start a thread there. But you´d have to look that up and experiment on your own.
Unfortunatly, it’s outside of Wisej.NET scope.
Activity
itg-assistant commentedon Jun 15, 2026
Frank (ITG) answered 2023-07-28 12:01:58 UTC
Hi Manfred,
usually, Web servers don’t do anything without a browser request.
IIS has a way to preload an assembly on startup and possibly invoke a method to register a module.
It´s maybe possible to start a thread there. But you´d have to look that up and experiment on your own.
Unfortunatly, it’s outside of Wisej.NET scope.
Hope that helps anyways.
Best regards
Frank
itg-assistant commentedon Jun 15, 2026
Kizaemon Date answered 2023-08-01 03:08:27 UTC
For background processing I am using successfully the Windows Task Scheduler to run a separate stand-alone process (command line exe file).
That process is polling in a database queue and does as requested.
This has also an advantage of decoupling the concerns, the memory management and the releases.
From withing WiseJ the Task Scheduler can be easily managed with a NuGet Extension (https://github.com/dahall/taskscheduler) .