示例#1
0
        public static void Main(string[] args)
        {
            var container = new WindsorContainer();
            var installer = new Installer();

            var anthill = new Example(container,
                                      installer);

            anthill.Main();

            Console.ReadLine();

            Environment.Exit(0);
        }
示例#2
0
        public static void Main()
        {
            var container = new WindsorContainer();
            var installer = new Installer();

            var example = new Example(container,
                                      installer);

            example.Main();

            Console.ReadLine();

            example.Dispose();

            Environment.Exit(0);
        }