Background Worker without active session

0
1

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.”

  • You must to post comments
0
0

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) .

 

 

 

  • You must to post comments
0
0

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

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.