Code: Select all
var byte asmBytes = GetBytesFromAssemblyFile();
var asm = AppDomain.CurrentDomain.Load( asmBytes );
var pluginType = ( IPluginInterface ) Activator.CreateInstanceFrom( asm.FullName, "NameOfConcreteType" );
I've already got the .dll file downloaded from a "plugin's" folder on my site. If a person could do the previous, then extending my application with my own pluggable code would be great. I have tried some of this already, but I am running into a few issues, so I wanted to ask before I spent too much time on something that may, or may not, be doable.