protected override void Configure() { foreach (var assembly in AssemblySource.Instance) { ServiceRepository.Add(assembly); } ServiceExporter.Export <IEventAggregator>(new EventAggregator()); }
/// <summary> /// Initialize the Caliburn bootstrapper from the Dapplo startup /// </summary> /// <param name="token">CancellationToken</param> public Task StartAsync(CancellationToken token = default(CancellationToken)) { LogManager.GetLog = type => new CaliburnLogger(type); Initialize(); var windowManagers = ServiceLocator.GetExports <IWindowManager>(); if (!windowManagers.Any()) { ServiceExporter.Export <IWindowManager>(new WindowManager()); } OnStartup(this, null); return(Task.FromResult(true)); }