Пример #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();
        }