Esempio n. 1
0
        protected override void Init()
        {
            Kernel.AppServiceRegister(this.GetType().Assembly);

            DomainIocInitializer.Init(Kernel);

            Kernel.Register(
                Component.For(typeof(ILogger)).ImplementedBy(typeof(Logger))
                .LifestyleScoped(),
                Component.For(typeof(ISession)).ImplementedBy(typeof(Session))
                .LifestyleScoped(),
                Component.For(typeof(IPermissionChecker)).ImplementedBy(typeof(PermissionChecker))
                .LifestyleScoped()
                );
        }
Esempio n. 2
0
        protected override void Init()
        {
            Kernel.AppServiceRegister(this.GetType().Assembly);

            DomainIocInitializer.Init(Kernel);
        }