static void load(string assembly) { Directory.CreateDirectory("plugins"); var manager = new AssemblyManager(); manager.LoadFrom(assembly); manager.DoWork(); //Directory.Delete("plugins", true); manager.DoWork(); //manager.ShowCrossDomainPollutionExceptions(); manager.UnLoad(); }
public static void Main(string[] args) { Directory.CreateDirectory("plugins"); var manager = new AssemblyManager(); manager.LoadFrom("plugins\\TestPluginOne.dll"); manager.DoWork(); Directory.Delete("plugins", true); manager.DoWork(); manager.ShowCrossDomainPollutionExceptions(); Console.WriteLine("Press any key to continue..."); Console.ReadKey(); }
static void Main(string[] args) { Directory.CreateDirectory("plugins"); var manager = new AssemblyManager(); manager.LoadFrom("plugins\\TestPluginOne.dll"); manager.DoWork(); Directory.Delete("plugins", true); manager.DoWork(); manager.ShowCrossDomainPolutionExceptions(); Console.WriteLine("Press any key to continue..."); Console.ReadKey(); }