public void OneTimeSetup() { BindingLogger.Setup(); _ = Logger.ObserveTaskException(); _ = Application.Current.ObserveUiException(); typeof(GlobalSetup).LogInfo(Assembly.GetExecutingAssembly()); }
/* ----------------------------------------------------------------- */ /// /// OnStartup /// /// <summary> /// Occurs when the Startup event is fired. /// </summary> /// /* ----------------------------------------------------------------- */ protected override void OnStartup(StartupEventArgs e) { BindingLogger.Setup(); this.LogInfo(Assembly.GetExecutingAssembly()); _observer.Add(Logger.ObserveTaskException()); _observer.Add(this.ObserveUiException()); Arguments = e.Args ?? Enumerable.Empty <string>(); this.LogInfo($"Arguments:{Arguments.Join(" ")}"); ApplicationSetting.Configure(); base.OnStartup(e); }