Пример #1
0
        static void Main(string[] args)
        {
            Console.WriteLine(AppDomain.CurrentDomain.FriendlyName);
            dynamic settings = new Dobj(new DobjSettings {
                AutoCreate = true
            });

            settings.name          = "TestContainer";
            settings.basedir       = AppDomain.CurrentDomain.BaseDirectory;
            settings.pattern       = "addin.dll";
            settings.entry         = ".ConsoleAddin";
            settings.settings.port = 80;
            var rp = new FolderRepository(settings);

            rp.Load();
            Console.WriteLine("Press any key to unload ...");
            Console.ReadKey();
            rp.Unload();
            Console.WriteLine("Press any key to exit ...");
            Console.ReadKey();

            //HappyPath();
            //Test();
        }