Exemple #1
0
 public void OneTimeSetup()
 {
     BindingLogger.Setup();
     _ = Logger.ObserveTaskException();
     _ = Application.Current.ObserveUiException();
     typeof(GlobalSetup).LogInfo(Assembly.GetExecutingAssembly());
 }
Exemple #2
0
        /* ----------------------------------------------------------------- */
        ///
        /// 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);
        }