G
Guest
I have an application that accepts plugins. It allows the user to choose
which plugins they want to run from a list of available plugins. My problem
is that I need to build that list of plugins by checking the assemblies in
the plugins folder to see if they implement the plugin interface. If I load
each assembly and check it, then I have all those assemblies in memory until
the application gets shutdown, even though the user may only want to use a
few of them.
My idea was to load them all into a separate appdomain to check them and
build my list, and then unload that domain. Then I could just load the
plugins that the user chooses. My problem is that I don't know how to check
the assembly to see if it implements the plugin interface once its loaded
into the separate appdomain. Can anyone point me to an article on this, or
some sample code? Thanks!
which plugins they want to run from a list of available plugins. My problem
is that I need to build that list of plugins by checking the assemblies in
the plugins folder to see if they implement the plugin interface. If I load
each assembly and check it, then I have all those assemblies in memory until
the application gets shutdown, even though the user may only want to use a
few of them.
My idea was to load them all into a separate appdomain to check them and
build my list, and then unload that domain. Then I could just load the
plugins that the user chooses. My problem is that I don't know how to check
the assembly to see if it implements the plugin interface once its loaded
into the separate appdomain. Can anyone point me to an article on this, or
some sample code? Thanks!