/// <summary> /// Override this to add custom behavior to execute after the application starts. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The args.</param> protected override async void OnStartup(object sender, StartupEventArgs e) { DisplayRootViewFor <TrayIconViewModel>(); _eventManager = RootContainer.GetInstance <TfsEventManager>(); await _eventManager.Connect(); await _eventManager.StartMonitoring(); }