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() ); }
protected override void Init() { Kernel.AppServiceRegister(this.GetType().Assembly); DomainIocInitializer.Init(Kernel); }