Reload SCSF application

155 Views Asked by At

I am using SCSF to define a framework of a set of loosely coupled applications and services. The profilecatalog.xml file describes, which plugins should be loaded and also the dependency to the services. This is the standard procedure and is operating well.

However, I would like to enable the possibility to load a plugin at runtime. I have some plugins, which take some time to load. And this plugins are used rarely. So I think to enable the possibility to load this plugins at runtime, only when needed (User clicks on the item). It is of course possible to write the plugins in a way, that does not slow down the starting time of the framework. But I am not responsible for any plugin, so I try to solve this issue from the framework by not loading any plugin.

1

There are 1 best solutions below

3
neverseenjack On

You can dynamically load your SCSF modules using techniques outlined in these articles:

  1. http://blogs.southworks.net/mwoloski/2006/02/27/cabmodulesondemand/
  2. http://blogs.msdn.com/b/mszcool/archive/2005/12/20/505976.aspx
  3. http://smartclient.codeplex.com/discussions/222221

One limitation that you might run into is that modules cannot be "unloaded" dynamically.