Created
March 21, 2011 22:17
-
-
Save Jonsey/880340 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Bootstrapper : UnityBootstrapper | |
| { | |
| #region Overrides of UnityBootstrapper | |
| protected override DependencyObject CreateShell() | |
| { | |
| var shell = new Shell(); | |
| shell.Show(); | |
| return shell; | |
| } | |
| protected override void ConfigureContainer() | |
| { | |
| Container.RegisterType<IUIViewService, UIViewService>(new ContainerControlledLifetimeManager()); | |
| base.ConfigureContainer(); | |
| } | |
| protected override IModuleCatalog GetModuleCatalog() | |
| { | |
| var catalog = new ModuleCatalog(); | |
| catalog.AddModule(typeof(InventoryModule)); | |
| return catalog; | |
| } | |
| #endregion | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment