Esempio n. 1
0
 void App_Exit(object sender, ExitEventArgs e)
 {
     extensionService.OnAppExit();
     dsLoaderService.Save();
     try {
         new XmlSettingsWriter(settingsService).Write();
     }
     catch {
     }
     compositionContainer.Dispose();
 }
Esempio n. 2
0
 void App_Exit(object sender, ExitEventArgs e)
 {
     extensionService?.OnAppExit();
     dsLoaderService?.Save();
     try {
         var settingsService = exportProvider?.GetExportedValue <SettingsService>();
         if (settingsService != null)
         {
             new XmlSettingsWriter(settingsService).Write();
         }
     }
     catch {
     }
 }