From 2011484e4e49678ca6c446708be25384177fbc5c Mon Sep 17 00:00:00 2001 From: Jared Date: Tue, 15 Dec 2020 16:35:38 -0800 Subject: [PATCH] Prevent ClipboarService from opening unnecessary handles. Clean up Windows desktop app startup process. --- Desktop.Win/App.xaml | 2 +- Desktop.Win/App.xaml.cs | 11 ------- Desktop.Win/Program.cs | 21 ++++++-------- Desktop.Win/Services/ClipboardServiceWin.cs | 22 +++++++------- Desktop.Win/ViewModels/MainWindowViewModel.cs | 6 +++- Desktop.Win/Views/MainWindow.xaml.cs | 7 ++++- Tests.LoadTester/Tests.LoadTester.csproj | 3 +- Tests/ManaulTests.cs | 29 ------------------- Tests/Tests.csproj | 3 +- 9 files changed, 37 insertions(+), 67 deletions(-) delete mode 100644 Tests/ManaulTests.cs diff --git a/Desktop.Win/App.xaml b/Desktop.Win/App.xaml index fc23cd91..1a679806 100644 --- a/Desktop.Win/App.xaml +++ b/Desktop.Win/App.xaml @@ -2,7 +2,7 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:Remotely.Desktop.Win" - DispatcherUnhandledException="Application_DispatcherUnhandledException" Startup="Application_Startup" Exit="Application_Exit"> + DispatcherUnhandledException="Application_DispatcherUnhandledException" Startup="Application_Startup">