Description of AssembliesLoader.
Beispiel #1
0
        static void LoadPlugins()
        {
            var clientAssembly = (AppDomain.CurrentDomain.GetAssemblies().First(asm => asm.FullName.Contains("Tmx.Client")));
            var clientFolderPath = clientAssembly.Location.Substring(0, clientAssembly.Location.LastIndexOf('\\'));

            // 20150617
            var pluginsLoader = new AssembliesLoader(clientFolderPath + @"\Plugins", "*.dll", true);
            // var pluginsLoader = new modulesloa(clientFolderPath + @"\Plugins", "*.dll");
            pluginsLoader.Load();
        }
 static void LoadPlugins()
 {
     // 20150617
     // var pluginsLoader = new AssembliesLoader((new TmxServerRootPathProvider()).GetRootPath() + @"\Plugins");
     // var pluginsLoader = new ModulesLoader((new TmxServerRootPathProvider()).GetRootPath() + @"\Plugins", "*.dll", true);
     var pluginsLoader = new AssembliesLoader((new TmxServerRootPathProvider()).GetRootPath() + @"\Plugins", "*.dll", true);
     pluginsLoader.Load();
 }