Skip to content

Instantly share code, notes, and snippets.

@Jonsey
Created March 21, 2011 22:17
Show Gist options
  • Select an option

  • Save Jonsey/880340 to your computer and use it in GitHub Desktop.

Select an option

Save Jonsey/880340 to your computer and use it in GitHub Desktop.
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