I am working on a method of extending our application to allow customers to create scripts and have these scripts run at certain key points within our system.
I have managed to get the scripts loaded, and can execute them successfully.
However to speed the run time process up I want to precompile all the scripts and have subsequent calls make reference to these pre compiled scripts. The issue I have is that I have no idea when the site loses the compiled scripts. Under IIS the objects seem to hang around between calls, if I create the script site under a regular Windows App the site goes away after I close the app.
I thought about creating a service to keep the site definetly running, however I notice that you only get one call to the GetGlobalInstance, which probably means that a single global object would be used by many clients, and therefore can not be used in a multi user environment.
Lots of things don't make sense and I can't find any answers, your help would be appreciated.