using System; using System.Collections.Generic; using System.Windows; using Caliburn.Micro; using LaDOSE.DesktopApp.Services; using LaDOSE.DesktopApp.ViewModels; namespace LaDOSE.DesktopApp { public class Bootstrapper : BootstrapperBase { private SimpleContainer container; public Bootstrapper() { Initialize(); } protected override void Configure() { container = new SimpleContainer(); container.Singleton(); container.PerRequest(); container.Singleton(); } protected override void OnStartup(object sender, StartupEventArgs e) { DisplayRootViewFor(); } protected override object GetInstance(Type service, string key) { return container.GetInstance(service, key); } protected override IEnumerable GetAllInstances(Type service) { return container.GetAllInstances(service); } protected override void BuildUp(object instance) { container.BuildUp(instance); } } }