private void Application_Exit(object sender, ExitEventArgs e) { if (MessagingClient.IsConnected) { MessagingClient.Disconnect(); } }
protected override void OnExit(ExitEventArgs e) { if (MessagingClient.IsConnected) { MessagingClient.Disconnect(); } ServiceLocator.Current.GetInstance <ITriggerService>().CloseTriggers(); }
protected override void OnExit(ExitEventArgs e) { if (MessagingClient.IsConnected) { MessagingClient.Disconnect(); } TriggerService.CloseTriggers(); }