示例#1
0
        static Bootstrapper()
        {
            var container = new Container();

            InfrastructureInstaller.RegisterServices(container);
            ControllersInstaller.RegisterServices(container);
            ViewsInstaller.RegisterServices(container);
            container.Verify();
            Container = container;
        }
示例#2
0
        static Bootstrapper()
        {
            Logger = log4net.LogManager.GetLogger("RollingFileLogger");
            var container = new Container();

            container.Options.DefaultScopedLifestyle = new WebRequestLifestyle();
            InfrastructureInstaller.RegisterServices(container);
            ControllersInstaller.RegisterServices(container);

            container.Verify();
            Container = container;

            //FinanceManagerMessageCallback.SubscribeToMessages();
        }