示例#1
0
        static void Main(string[] args)
        {
            //IUnityContainer container = new UnityContainer();
            //.LoadConfiguration();

            //container.RegisterInstance<IServiceLocator>(new UnityServiceLocatorAdapter(container));

            ////ICalculaterReplLoop calculaterReplLoop = container.Resolve<ICalculaterReplLoop>();
            ////calculaterReplLoop.Run();

            //TextLogger logger = new TextLogger();
            //container.RegisterInstance<ILoggerFacade>(logger);
            //container.RegisterType<IModuleInitializer, ModuleInitializer>();
            //ConfigurationModuleCatalog catalog = new ConfigurationModuleCatalog();
            //container.RegisterInstance<IModuleCatalog>(catalog);
            //container.RegisterType<IModuleManager, ModuleManager>();

            //IModuleManager manager = container.Resolve<IModuleManager>();
            //manager.Run();

            CalculatorBootstrapper bootstrapper = new CalculatorBootstrapper();

            bootstrapper.Run();
        }
示例#2
0
        static void Main(string[] args)
        {
            CalculatorBootstrapper bootstrapper = new CalculatorBootstrapper();

            bootstrapper.Run();
        }