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