Exemple #1
0
        protected override void Configure()
        {
            _kernel = new StandardKernel();

            _kernel.Bind <IUnitOfWork>().To <UnitOfWork>().InTransientScope();
            _kernel.Bind <IViewProvider>().To <ViewProvider>().InTransientScope();
            _kernel.Bind <IPasswordManager>().To <PasswordManager>().InSingletonScope();

            RegisterViewModels();

            UseViewAttribute.ConfigureViewLocator();

            RegisterHandlers();

            //PasswordBoxHelper.Register();
        }
Exemple #2
0
        protected override void Configure()
        {
            _kernel = new StandardKernel();
            _kernel.Bind <IPasswordManager>().To <PasswordManager>().InSingletonScope();
            _kernel.Bind <IAccessProvider>().To <AccessProvider>().InSingletonScope();
            _kernel.Bind <ILogInStrategy>().To <LogInStrategy>().InSingletonScope();
            _kernel.Bind <IWaiterConnectionProvider>().To <WaiterConnectionProvider>().InSingletonScope();

            RegisterViewModels();


            var waiterApp = new WaiterApp();

            _kernel.Bind <IWaiterApp>().ToConstant(waiterApp);
            _kernel.Bind <IWaiterAppSubscriber>().ToConstant(waiterApp);

            UseViewAttribute.ConfigureViewLocator();
        }