This project has moved and is read-only. For the latest updates, please go here.

Create dynamically an Instance when a part is added to the catalog

Mar 14, 2011 at 10:29 PM

Good morning,

 I would like to create an instance of a part when its DLL is added to a folder.

For this I use the DirectoryCatalog and a FileSystemWatcher to Refresh the catalog when needed.

But how can I instanciate my module ? I tried CreatePart()  and cast it with my Contract but it does not work.