Exemple #1
0
        protected void Application_Start(object sender, EventArgs e)
        {
            ObjectsFactory factory = ObjectsFactory.SoloInstance;

            factory.AddConfig(new EntlibObjects());
            factory.AddConfig(new CommonObjects());
            factory.AddConfig(new ZeroObjects());

            IUnityContainer container = ObjectsRegistry.SoloInstance.Container;

            factory.Registrate(container);
        }
Exemple #2
0
        protected override void Configure()
        {
            this.container = new UnityContainer();

            ObjectsFactory factory = ObjectsFactory.SoloInstance;

            factory.AddConfig(new CaliburnObjects());
            factory.AddConfig(new CommonObjects());
            factory.AddConfig(new ZeroObjects());

            factory.Registrate(container);
        }