Register() public method

public Register ( Registry registry ) : void
registry Registry
return void
        public void SetUp()
        {
            var registry = new Registry();
            shell = new Shell();
            shell.Register(registry);

            container = new Container(registry);
        }
Ejemplo n.º 2
0
        private void setupShell()
        {
            var shell = new Shell();

            shell.Register(this);

            var window = new MainWindow(shell);

            For <Window>().Use(window);

            ForSingletonOf <IScreenConductor>().Use <ScreenConductor>().OnCreation(
                (context, presenter) =>
            {
                var w      = context.GetInstance <Window>().As <MainWindow>();
                w.CanClose = presenter.CanClose;
            });
        }