protected override void OnStartup(object sender, System.Windows.StartupEventArgs e) { base.OnStartup(sender, e); jumpList = Container.Resolve <JumpListIntegration>(); SetAwesomiumDefaults(); DumpIconsForDocuments(); Container.Resolve <IEventAggregator>().Publish(new AppReadyEvent()); // Handle the original arguments from the first run of this app. ((App)Application).HandleArguments(Environment.GetCommandLineArgs()); }
protected override void Configure() { SetupLogging(); Caliburn.Micro.LogManager.GetLog = t => new NLogAdapter(t); var builder = new ContainerBuilder(); SetupCaliburnMicroDefaults(builder); builder.RegisterModule <EventAggregationAutoSubscriptionModule>(); builder.RegisterModule <ServicesModule>(); builder.RegisterType <JumpListIntegration>().SingleInstance(); container = builder.Build(); jumpList = container.Resolve <JumpListIntegration>(); }