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); }
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); }