From 0f023d2d6f11e7a506ede70fdab76adfb73ea161 Mon Sep 17 00:00:00 2001 From: Jared Goodwin Date: Mon, 21 Oct 2024 11:53:41 -0700 Subject: [PATCH] Apply folder and namespace fixes on solution. --- Agent/Extensions/PowerShellCompletionExtensions.cs | 4 ---- Agent/Interfaces/IAppLauncher.cs | 1 - Agent/Interfaces/IDeviceInformationService.cs | 5 ----- Agent/Interfaces/IScriptingShell.cs | 8 +------- Agent/Interfaces/IUpdater.cs | 3 +-- Agent/Services/AgentHubConnection.cs | 4 ++-- Agent/Services/ChatClientService.cs | 1 - Agent/Services/CpuUtilizationSampler.cs | 1 - Agent/Services/DeviceInfoGeneratorBase.cs | 1 - Agent/Services/ExternalScriptingShell.cs | 1 - Agent/Services/FileLogsManager.cs | 5 +---- Agent/Services/Linux/DeviceInfoGeneratorLinux.cs | 4 ---- Agent/Services/Linux/UpdaterLinux.cs | 3 --- Agent/Services/MacOS/AppLauncherMac.cs | 1 - Agent/Services/MacOS/DeviceInfoGeneratorMac.cs | 1 - Agent/Services/MacOS/UpdaterMac.cs | 3 --- Agent/Services/PsCoreShell.cs | 4 +--- Agent/Services/ScriptExecutor.cs | 4 +--- Agent/Services/Uninstaller.cs | 3 +-- Agent/Services/UpdateDownloader.cs | 1 - Agent/Services/WakeOnLanService.cs | 2 -- Agent/Services/Windows/AppLauncherWin.cs | 4 ++-- Agent/Services/Windows/DeviceInfoGeneratorWin.cs | 4 ++-- Desktop.Linux/Program.cs | 3 +-- Desktop.Linux/Services/AppStartup.cs | 1 - Desktop.Linux/Services/KeyboardMouseInputLinux.cs | 2 +- Desktop.Linux/Services/ScreenCapturerLinux.cs | 2 +- .../Startup/IServiceCollectionExtensions.cs | 1 - Desktop.Linux/Usings.cs | 1 - Desktop.Native/Linux/LibX11.cs | 2 +- Desktop.Native/Linux/LibXtst.cs | 2 +- Desktop.Native/Linux/Libc.cs | 2 +- Desktop.Native/Linux/libXrandr.cs | 2 +- Desktop.Native/Windows/ADVAPI32.cs | 3 +-- Desktop.Native/Windows/GDI32.cs | 5 ++--- Desktop.Native/Windows/Kernel32.cs | 3 +-- Desktop.Native/Windows/SECUR32.cs | 5 ++--- Desktop.Native/Windows/Shlwapi.cs | 2 +- Desktop.Native/Windows/User32.cs | 2 +- Desktop.Native/Windows/WTSAPI32.cs | 5 ++--- Desktop.Native/Windows/Win32Interop.cs | 8 ++++---- Desktop.Shared/Reactive/AsyncRelayCommand.cs | 7 +------ Desktop.Shared/Reactive/RelayCommand.cs | 7 +------ Desktop.Shared/Services/BrandingProvider.cs | 7 ++----- Desktop.Shared/Services/DesktopEnvironment.cs | 4 ++-- Desktop.Shared/Services/DesktopHubConnection.cs | 2 +- Desktop.Shared/Services/DtoMessageHandler.cs | 2 +- Desktop.Shared/Services/IdleTimer.cs | 1 - Desktop.Shared/Services/ScreenCaster.cs | 3 --- Desktop.Shared/Services/Viewer.cs | 2 +- Desktop.Shared/Services/ViewerFactory.cs | 5 ----- .../Startup/IServiceCollectionExtensions.cs | 2 -- .../Startup/IServiceProviderExtensions.cs | 2 +- Desktop.UI/Controls/Dialogs/MessageBox.axaml.cs | 2 -- Desktop.UI/Services/ChatUiService.cs | 2 -- Desktop.UI/Services/ClipboardService.cs | 1 - Desktop.UI/Services/DialogProvider.cs | 6 ------ Desktop.UI/Services/RemoteControlAccessService.cs | 1 - Desktop.UI/Services/UiDispatcher.cs | 1 - Desktop.UI/Services/ViewModelFactory.cs | 2 -- Desktop.UI/ViewModels/BrandedViewModelBase.cs | 6 +----- Desktop.UI/ViewModels/ChatWindowViewModel.cs | 4 +--- .../ViewModels/Fakes/FakeBrandedViewModelBase.cs | 4 ---- .../ViewModels/Fakes/FakeMainViewViewModel.cs | 1 - .../ViewModels/FileTransferWindowViewModel.cs | 2 -- Desktop.UI/ViewModels/HostNamePromptViewModel.cs | 3 +-- Desktop.UI/ViewModels/MainViewViewModel.cs | 4 ---- Desktop.UI/ViewModels/MainWindowViewModel.cs | 5 ++--- Desktop.UI/ViewModels/MessageBoxViewModel.cs | 3 +-- .../ViewModels/PromptForAccessWindowViewModel.cs | 3 +-- .../ViewModels/SessionIndicatorWindowViewModel.cs | 5 ++--- Desktop.UI/Views/ChatWindow.axaml.cs | 3 +-- Desktop.UI/Views/SessionIndicatorWindow.axaml.cs | 5 ----- Desktop.Win/Program.cs | 4 ---- Desktop.Win/Services/AppStartup.cs | 3 +-- Desktop.Win/Services/CursorIconWatcherWin.cs | 4 ++-- Desktop.Win/Services/KeyboardMouseInputWin.cs | 6 +++--- Desktop.Win/Services/ScreenCapturerWin.cs | 2 +- Server/API/AgentUpdateController.cs | 8 +------- Server/API/AlertsController.cs | 9 --------- Server/API/BrandingController.cs | 7 ------- Server/API/DevicesController.cs | 4 ---- Server/API/FileSharingController.cs | 4 ---- Server/API/HealthCheckController.cs | 4 +--- Server/API/OrganizationManagementController.cs | 2 -- Server/API/SavedScriptsController.cs | 7 +------ Server/API/ScriptResultsController.cs | 5 ----- Server/API/ScriptingController.cs | 3 --- Server/API/ServerLogsController.cs | 6 ------ Server/Auth/ApiAuthorizationFilter.cs | 9 +-------- Server/Auth/ExpiringTokenFilter.cs | 3 --- Server/Auth/OrganizationAdminRequirementHandler.cs | 3 --- Server/Auth/ServerAdminRequirementHandler.cs | 3 --- Server/Auth/TwoFactorRequiredRequirement.cs | 4 ---- .../Components/Account/IdentityNoOpEmailSender.cs | 1 - ...entityRevalidatingAuthenticationStateProvider.cs | 1 - Server/Components/Account/IdentityUserAccessor.cs | 1 - Server/Components/AuthComponentBase.cs | 4 ---- Server/Components/Devices/ChatFrame.razor.cs | 9 +-------- Server/Components/Devices/DeviceCard.razor.cs | 6 +----- Server/Components/Devices/DevicesFrame.razor.cs | 10 +--------- Server/Components/MessengerSubscriber.cs | 4 ---- .../ModalContents/EditDeviceGroup.razor.cs | 2 -- Server/Components/Pages/ServerConfig.razor.cs | 1 - Server/Components/Scripts/SavedScripts.razor.cs | 6 ------ Server/Components/Scripts/ScriptSchedules.razor.cs | 4 ---- Server/Components/Scripts/ScriptTreeNode.cs | 4 ---- Server/Components/TreeView/TreeItemType.cs | 7 +------ Server/Components/TreeView/TreeView.razor.cs | 4 ---- Server/Components/TreeView/TreeViewItem.razor.cs | 4 ---- .../Converters/PostgresDateTimeOffsetConverter.cs | 2 -- Server/Data/AppDbFactory.cs | 7 +------ Server/Data/DesignTimeContexts.cs | 1 - Server/Data/PostgreSqlDbContext.cs | 10 +--------- Server/Data/SqlServerDbContext.cs | 10 +--------- Server/Data/TestingDbContext.cs | 10 +--------- Server/Enums/DeviceCardState.cs | 7 +------ Server/Extensions/IApplicationBuilderExtensions.cs | 5 +---- Server/Extensions/IHeaderDictionaryExtensions.cs | 3 +-- Server/Extensions/IQueryableExtensions.cs | 5 +---- Server/Hubs/AgentHub.cs | 1 - .../Migrations/PostgreSql/20201005051254_Initial.cs | 3 +-- .../PostgreSql/20210206232836_Branding Info.cs | 3 +-- .../20210408133040_Add ScriptSchedules.cs | 3 +-- .../PostgreSql/20220917171937_Branding fix.cs | 3 +-- .../20230523215805_Replace DbLogger with Serilog.cs | 3 +-- .../20240221010243_Add_KeyValueRecords.cs | 3 +-- .../SqlServer/20201002214839_InitialCreate.cs | 3 +-- .../SqlServer/20210206232822_Branding Info.cs | 3 +-- .../SqlServer/20210408133030_Add ScriptSchedules.cs | 3 +-- .../SqlServer/20220917171927_Branding fix.cs | 3 +-- .../20230523215756_Replace DbLogger with Serilog.cs | 3 +-- .../SqlServer/20240221010103_Add_KeyValueRecords.cs | 3 +-- .../Sqlite/20210206232808_Branding Info.cs | 3 +-- .../Sqlite/20210408133020_Add ScriptSchedules.cs | 3 +-- .../Sqlite/20220917171918_Branding fix.cs | 3 +-- .../Sqlite/20240221010154_Add_KeyValueRecords.cs | 3 +-- Server/Models/ColorPickerModel.cs | 6 +----- Server/Models/ModalButton.cs | 4 +--- Server/Models/Toast.cs | 4 +--- Server/Pages/Viewer.cshtml | 3 ++- Server/Pages/Viewer.cshtml.cs | 2 +- Server/Program.cs | 1 - Server/Services/AgentHubSessionCache.cs | 5 +---- Server/Services/AuthService.cs | 8 -------- Server/Services/CircuitManager.cs | 8 +------- Server/Services/DataCleanupService.cs | 11 ----------- Server/Services/DesktopStreamCache.cs | 2 -- Server/Services/ExpiringTokenService.cs | 5 ----- Server/Services/JsInterop.cs | 1 - Server/Services/LoaderService.cs | 3 +-- Server/Services/LogsManager.cs | 12 +----------- Server/Services/ModalService.cs | 4 ---- Server/Services/OtpProvider.cs | 2 -- Server/Services/PascalCasePolicy.cs | 3 +-- Server/Services/RemoteControlSessionCleaner.cs | 3 --- Server/Services/ScriptScheduler.cs | 13 +------------ Server/Services/Stores/ChatSessionStore.cs | 3 --- Server/Services/Stores/SelectedCardsStore.cs | 6 +----- Server/Services/Stores/TerminalStore.cs | 2 -- Server/Services/ThemeProvider.cs | 4 +--- Server/Services/ToastService.cs | 6 ------ Server/Services/UpgradeService.cs | 12 +----------- Shared/AppConstants.cs | 8 +------- Shared/Attributes/SortableAttribute.cs | 7 +------ Shared/DtoEntityBases/ScriptResultBase.cs | 2 -- Shared/Dtos/DeviceClientDto.cs | 6 ------ Shared/Dtos/ScriptResultDto.cs | 5 ----- Shared/Dtos/ScriptResultResponse.cs | 8 +------- Shared/Entities/Alert.cs | 3 +-- Shared/Entities/ApiToken.cs | 3 +-- Shared/Entities/BrandingInfo.cs | 6 ------ Shared/Entities/Device.cs | 4 ---- Shared/Entities/DeviceGroup.cs | 4 +--- Shared/Entities/InviteLink.cs | 3 +-- Shared/Entities/KeyValueRecord.cs | 7 +------ Shared/Entities/Organization.cs | 5 +---- Shared/Entities/RemotelyUser.cs | 2 -- Shared/Entities/SavedScript.cs | 5 ----- Shared/Entities/ScriptResult.cs | 4 ---- Shared/Entities/ScriptRun.cs | 6 ------ Shared/Entities/ScriptSchedule.cs | 7 ------- Shared/Entities/SharedFile.cs | 3 +-- Shared/Enums/ChatHistoryItemOrigin.cs | 7 +------ Shared/Enums/CompletionIntent.cs | 8 +------- Shared/Enums/DbProvider.cs | 8 +------- Shared/Enums/RepeatInterval.cs | 8 +------- Shared/Enums/ScriptInputType.cs | 8 +------- Shared/Enums/ScriptingShell.cs | 9 +-------- Shared/Extensions/DeviceExtensions.cs | 5 ----- Shared/Extensions/IEnumerableExtensions.cs | 8 +------- Shared/Extensions/StreamExtensions.cs | 9 +-------- Shared/Extensions/StringExtensions.cs | 9 +-------- Shared/Helpers/PathSanitizer.cs | 8 +------- Shared/Interfaces/IAgentHubClient.cs | 5 ----- Shared/Models/AlertOptions.cs | 4 +--- Shared/Models/ConnectionInfo.cs | 2 -- Shared/Models/Drive.cs | 4 +--- Shared/Models/Dtos/FrameReceivedDto.cs | 7 +------ Shared/Models/Dtos/SessionMetricsDto.cs | 5 ----- Shared/Models/EmbeddedServerData.cs | 5 ----- Shared/Models/PwshCommandCompletion.cs | 8 +------- Shared/Models/RemoteControlAccessRequest.cs | 5 ----- Shared/Models/RemoteControlViewerOptions.cs | 7 +------ Shared/Primitives/CallbackDisposable.cs | 8 +------- Shared/Primitives/CallbackDisposableAsync.cs | 8 +------- Shared/Primitives/NoopDisposable.cs | 8 +------- Shared/Services/ElevationDetectorLinux.cs | 7 +------ Shared/Services/ElevationDetectorWin.cs | 8 +------- Shared/Services/EmbeddedServerDataProvider.cs | 3 --- Shared/Services/FileLogger.cs | 5 ----- Shared/Services/FileLoggerDefaults.cs | 7 ------- Shared/Services/FileLoggerProvider.cs | 1 - Shared/Services/IElevationDetector.cs | 8 +------- Shared/Services/ProcessInvoker.cs | 2 -- Shared/Usings.cs | 1 - Shared/Utilities/AppVersionHelper.cs | 8 +------- Shared/Utilities/AppendableStream.cs | 10 +--------- Shared/Utilities/ConsoleHelper.cs | 7 +------ Shared/Utilities/Disposer.cs | 4 +--- Shared/Utilities/EnumMapper.cs | 8 +------- Shared/Utilities/EnvironmentHelper.cs | 2 -- Shared/Utilities/JsonSerializerHelper.cs | 7 +------ Shared/Utilities/MathHelper.cs | 8 +------- Shared/Utilities/Time.cs | 10 +--------- Shared/Utilities/TimeSpanJsonConverter.cs | 7 +------ Shared/ViewModels/ChatHistoryItem.cs | 5 ----- Shared/ViewModels/ChatSession.cs | 3 +-- Shared/ViewModels/InviteViewModel.cs | 3 +-- Shared/ViewModels/TerminalLineItem.cs | 9 +-------- Shared/ViewModels/ViewModelBase.cs | 7 +------ Tests/LoadTester/CommandLineParser.cs | 2 +- Tests/LoadTester/Program.cs | 7 ++----- Tests/Server.Tests/DataServiceTests.cs | 2 -- Tests/Server.Tests/IoCActivator.cs | 9 +-------- Tests/Server.Tests/Mocks/HubContextFixture.cs | 6 ------ 236 files changed, 155 insertions(+), 908 deletions(-) diff --git a/Agent/Extensions/PowerShellCompletionExtensions.cs b/Agent/Extensions/PowerShellCompletionExtensions.cs index a39e54cba..4b1062e3c 100644 --- a/Agent/Extensions/PowerShellCompletionExtensions.cs +++ b/Agent/Extensions/PowerShellCompletionExtensions.cs @@ -1,11 +1,7 @@ using Remotely.Shared.Models; using Remotely.Shared.Utilities; -using System; -using System.Collections.Generic; using System.Linq; using System.Management.Automation; -using System.Text; -using System.Threading.Tasks; namespace Remotely.Agent.Extensions; diff --git a/Agent/Interfaces/IAppLauncher.cs b/Agent/Interfaces/IAppLauncher.cs index d53fba75b..a228b10b4 100644 --- a/Agent/Interfaces/IAppLauncher.cs +++ b/Agent/Interfaces/IAppLauncher.cs @@ -1,5 +1,4 @@ using Microsoft.AspNetCore.SignalR.Client; -using System.Collections.Generic; using System.Threading.Tasks; namespace Remotely.Agent.Interfaces; diff --git a/Agent/Interfaces/IDeviceInformationService.cs b/Agent/Interfaces/IDeviceInformationService.cs index ed59b0559..73bba14d6 100644 --- a/Agent/Interfaces/IDeviceInformationService.cs +++ b/Agent/Interfaces/IDeviceInformationService.cs @@ -1,9 +1,4 @@ using Remotely.Shared.Dtos; -using Remotely.Shared.Models; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Threading.Tasks; namespace Remotely.Agent.Interfaces; diff --git a/Agent/Interfaces/IScriptingShell.cs b/Agent/Interfaces/IScriptingShell.cs index 267c5ff67..d6784fcfc 100644 --- a/Agent/Interfaces/IScriptingShell.cs +++ b/Agent/Interfaces/IScriptingShell.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Remotely.Agent.Interfaces; +namespace Remotely.Agent.Interfaces; public interface IScriptingShell { bool IsDisposed { get; } diff --git a/Agent/Interfaces/IUpdater.cs b/Agent/Interfaces/IUpdater.cs index 7ae575a86..420bddba4 100644 --- a/Agent/Interfaces/IUpdater.cs +++ b/Agent/Interfaces/IUpdater.cs @@ -1,5 +1,4 @@ -using System; -using System.Threading.Tasks; +using System.Threading.Tasks; namespace Remotely.Agent.Interfaces; diff --git a/Agent/Services/AgentHubConnection.cs b/Agent/Services/AgentHubConnection.cs index af0a43afc..3873a4e13 100644 --- a/Agent/Services/AgentHubConnection.cs +++ b/Agent/Services/AgentHubConnection.cs @@ -1,5 +1,4 @@ -using Remotely.Desktop.Shared.Native.Windows; -using Microsoft.AspNetCore.SignalR.Client; +using Microsoft.AspNetCore.SignalR.Client; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; @@ -19,6 +18,7 @@ using System.Threading.Tasks; using System.Timers; using Timer = System.Timers.Timer; +using Remotely.Desktop.Native.Windows; namespace Remotely.Agent.Services; diff --git a/Agent/Services/ChatClientService.cs b/Agent/Services/ChatClientService.cs index bac65da28..4bb19b2af 100644 --- a/Agent/Services/ChatClientService.cs +++ b/Agent/Services/ChatClientService.cs @@ -3,7 +3,6 @@ using Remotely.Agent.Interfaces; using Remotely.Agent.Models; using Remotely.Shared.Models; -using Remotely.Shared.Utilities; using System; using System.Diagnostics; using System.IO; diff --git a/Agent/Services/CpuUtilizationSampler.cs b/Agent/Services/CpuUtilizationSampler.cs index b5fe4c292..129801831 100644 --- a/Agent/Services/CpuUtilizationSampler.cs +++ b/Agent/Services/CpuUtilizationSampler.cs @@ -5,7 +5,6 @@ using System.Collections.Generic; using System.Diagnostics; using System.Linq; -using System.Text; using System.Threading; using System.Threading.Tasks; diff --git a/Agent/Services/DeviceInfoGeneratorBase.cs b/Agent/Services/DeviceInfoGeneratorBase.cs index 937e31666..6c5f3fc9c 100644 --- a/Agent/Services/DeviceInfoGeneratorBase.cs +++ b/Agent/Services/DeviceInfoGeneratorBase.cs @@ -4,7 +4,6 @@ using Remotely.Shared.Utilities; using System; using System.Collections.Generic; -using System.Diagnostics; using System.IO; using System.Linq; using System.Net.NetworkInformation; diff --git a/Agent/Services/ExternalScriptingShell.cs b/Agent/Services/ExternalScriptingShell.cs index 02a1474c0..ce709362e 100644 --- a/Agent/Services/ExternalScriptingShell.cs +++ b/Agent/Services/ExternalScriptingShell.cs @@ -3,7 +3,6 @@ using Remotely.Shared.Dtos; using Remotely.Shared.Enums; using System; -using System.Collections.Concurrent; using System.Diagnostics; using System.Linq; using System.Threading; diff --git a/Agent/Services/FileLogsManager.cs b/Agent/Services/FileLogsManager.cs index d283bf8c2..32e6feade 100644 --- a/Agent/Services/FileLogsManager.cs +++ b/Agent/Services/FileLogsManager.cs @@ -1,12 +1,9 @@ -using Microsoft.Extensions.Logging; -using Remotely.Shared.Services; -using System; +using Remotely.Shared.Services; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; -using System.Text; using System.Threading; using System.Threading.Tasks; diff --git a/Agent/Services/Linux/DeviceInfoGeneratorLinux.cs b/Agent/Services/Linux/DeviceInfoGeneratorLinux.cs index 2a8e13232..dfa79eba4 100644 --- a/Agent/Services/Linux/DeviceInfoGeneratorLinux.cs +++ b/Agent/Services/Linux/DeviceInfoGeneratorLinux.cs @@ -1,13 +1,9 @@ using Microsoft.Extensions.Logging; using Remotely.Agent.Interfaces; using Remotely.Shared.Dtos; -using Remotely.Shared.Models; using Remotely.Shared.Services; -using Remotely.Shared.Utilities; using System; -using System.Collections.Generic; using System.Linq; -using System.Text; using System.Threading.Tasks; namespace Remotely.Agent.Services.Linux; diff --git a/Agent/Services/Linux/UpdaterLinux.cs b/Agent/Services/Linux/UpdaterLinux.cs index dad3ba231..bdead9177 100644 --- a/Agent/Services/Linux/UpdaterLinux.cs +++ b/Agent/Services/Linux/UpdaterLinux.cs @@ -2,15 +2,12 @@ using Remotely.Agent.Interfaces; using Remotely.Shared.Utilities; using System; -using System.Collections.Generic; using System.Diagnostics; using System.IO; -using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Runtime.InteropServices; -using System.Text; using System.Threading; using System.Threading.Tasks; diff --git a/Agent/Services/MacOS/AppLauncherMac.cs b/Agent/Services/MacOS/AppLauncherMac.cs index e5d1a9284..98e92da06 100644 --- a/Agent/Services/MacOS/AppLauncherMac.cs +++ b/Agent/Services/MacOS/AppLauncherMac.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.SignalR.Client; using Remotely.Agent.Interfaces; diff --git a/Agent/Services/MacOS/DeviceInfoGeneratorMac.cs b/Agent/Services/MacOS/DeviceInfoGeneratorMac.cs index 23f083750..25eba66a2 100644 --- a/Agent/Services/MacOS/DeviceInfoGeneratorMac.cs +++ b/Agent/Services/MacOS/DeviceInfoGeneratorMac.cs @@ -1,7 +1,6 @@ using Microsoft.Extensions.Logging; using Remotely.Agent.Interfaces; using Remotely.Shared.Dtos; -using Remotely.Shared.Models; using Remotely.Shared.Services; using System; using System.Linq; diff --git a/Agent/Services/MacOS/UpdaterMac.cs b/Agent/Services/MacOS/UpdaterMac.cs index 05397e7b5..9d1d1b0d8 100644 --- a/Agent/Services/MacOS/UpdaterMac.cs +++ b/Agent/Services/MacOS/UpdaterMac.cs @@ -2,15 +2,12 @@ using Remotely.Agent.Interfaces; using Remotely.Shared.Utilities; using System; -using System.Collections.Generic; using System.Diagnostics; using System.IO; -using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Runtime.InteropServices; -using System.Text; using System.Threading; using System.Threading.Tasks; diff --git a/Agent/Services/PsCoreShell.cs b/Agent/Services/PsCoreShell.cs index 4b2555793..99b3e3c8c 100644 --- a/Agent/Services/PsCoreShell.cs +++ b/Agent/Services/PsCoreShell.cs @@ -1,10 +1,8 @@ -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Logging; using Remotely.Agent.Interfaces; using Remotely.Shared.Dtos; using Remotely.Shared.Models; using System; -using System.Collections.Concurrent; using System.Diagnostics; using System.Linq; using System.Management.Automation; diff --git a/Agent/Services/ScriptExecutor.cs b/Agent/Services/ScriptExecutor.cs index 2078791d2..f90d4980d 100644 --- a/Agent/Services/ScriptExecutor.cs +++ b/Agent/Services/ScriptExecutor.cs @@ -1,6 +1,4 @@ -using Remotely.Shared.Extensions; -using Microsoft.AspNetCore.SignalR.Client; -using Microsoft.Extensions.Hosting; +using Microsoft.AspNetCore.SignalR.Client; using Microsoft.Extensions.Logging; using Remotely.Shared; using Remotely.Shared.Dtos; diff --git a/Agent/Services/Uninstaller.cs b/Agent/Services/Uninstaller.cs index 45939c9a2..b5499a810 100644 --- a/Agent/Services/Uninstaller.cs +++ b/Agent/Services/Uninstaller.cs @@ -1,5 +1,4 @@ -using Microsoft.Win32; -using Remotely.Shared.Utilities; +using Remotely.Shared.Utilities; using System; using System.Diagnostics; using System.IO; diff --git a/Agent/Services/UpdateDownloader.cs b/Agent/Services/UpdateDownloader.cs index 6984ab771..f763937a0 100644 --- a/Agent/Services/UpdateDownloader.cs +++ b/Agent/Services/UpdateDownloader.cs @@ -1,6 +1,5 @@ using System; using System.IO; -using System.Net; using System.Net.Http; using System.Threading.Tasks; diff --git a/Agent/Services/WakeOnLanService.cs b/Agent/Services/WakeOnLanService.cs index f5d09f913..9ca6f4aeb 100644 --- a/Agent/Services/WakeOnLanService.cs +++ b/Agent/Services/WakeOnLanService.cs @@ -1,9 +1,7 @@ using System; -using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; -using System.Text; using System.Threading.Tasks; namespace Remotely.Agent.Services; diff --git a/Agent/Services/Windows/AppLauncherWin.cs b/Agent/Services/Windows/AppLauncherWin.cs index 13387ce54..88e342648 100644 --- a/Agent/Services/Windows/AppLauncherWin.cs +++ b/Agent/Services/Windows/AppLauncherWin.cs @@ -1,5 +1,4 @@ -using Remotely.Desktop.Shared.Native.Windows; -using Microsoft.AspNetCore.SignalR.Client; +using Microsoft.AspNetCore.SignalR.Client; using Microsoft.Extensions.Logging; using Remotely.Agent.Interfaces; using Remotely.Shared.Models; @@ -10,6 +9,7 @@ using System.Runtime.Versioning; using System.Security.Principal; using System.Threading.Tasks; +using Remotely.Desktop.Native.Windows; namespace Remotely.Agent.Services.Windows; diff --git a/Agent/Services/Windows/DeviceInfoGeneratorWin.cs b/Agent/Services/Windows/DeviceInfoGeneratorWin.cs index b41aade35..5d51d14e4 100644 --- a/Agent/Services/Windows/DeviceInfoGeneratorWin.cs +++ b/Agent/Services/Windows/DeviceInfoGeneratorWin.cs @@ -1,10 +1,10 @@ -using Remotely.Desktop.Shared.Native.Windows; -using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Logging; using Remotely.Agent.Interfaces; using Remotely.Shared.Dtos; using System; using System.Linq; using System.Threading.Tasks; +using Remotely.Desktop.Native.Windows; namespace Remotely.Agent.Services.Windows; diff --git a/Desktop.Linux/Program.cs b/Desktop.Linux/Program.cs index 7c04131a7..2a06b0316 100644 --- a/Desktop.Linux/Program.cs +++ b/Desktop.Linux/Program.cs @@ -11,9 +11,8 @@ using Remotely.Desktop.UI.Services; using Avalonia; using Remotely.Desktop.UI; -using Desktop.Shared.Services; -namespace Remotely.Desktop.XPlat; +namespace Remotely.Desktop.Linux; public class Program { diff --git a/Desktop.Linux/Services/AppStartup.cs b/Desktop.Linux/Services/AppStartup.cs index 5695f9f51..fd9e5ff2b 100644 --- a/Desktop.Linux/Services/AppStartup.cs +++ b/Desktop.Linux/Services/AppStartup.cs @@ -4,7 +4,6 @@ using Remotely.Desktop.UI.Services; using Remotely.Shared.Models; using Microsoft.Extensions.Logging; -using Desktop.Shared.Services; namespace Remotely.Desktop.Linux.Services; diff --git a/Desktop.Linux/Services/KeyboardMouseInputLinux.cs b/Desktop.Linux/Services/KeyboardMouseInputLinux.cs index fec58f4a5..8cf802764 100644 --- a/Desktop.Linux/Services/KeyboardMouseInputLinux.cs +++ b/Desktop.Linux/Services/KeyboardMouseInputLinux.cs @@ -1,8 +1,8 @@ using Remotely.Desktop.Shared.Abstractions; using Remotely.Desktop.Shared.Enums; -using Remotely.Desktop.Shared.Native.Linux; using Remotely.Desktop.Shared.Services; using Microsoft.Extensions.Logging; +using Remotely.Desktop.Native.Linux; namespace Remotely.Desktop.Linux.Services; diff --git a/Desktop.Linux/Services/ScreenCapturerLinux.cs b/Desktop.Linux/Services/ScreenCapturerLinux.cs index 63d028e11..f47ea059c 100644 --- a/Desktop.Linux/Services/ScreenCapturerLinux.cs +++ b/Desktop.Linux/Services/ScreenCapturerLinux.cs @@ -1,11 +1,11 @@ using Remotely.Desktop.Shared.Abstractions; -using Remotely.Desktop.Shared.Native.Linux; using Remotely.Desktop.Shared.Services; using Microsoft.Extensions.Logging; using Remotely.Shared.Primitives; using SkiaSharp; using System.Drawing; using System.Runtime.InteropServices; +using Remotely.Desktop.Native.Linux; namespace Remotely.Desktop.Linux.Services; diff --git a/Desktop.Linux/Startup/IServiceCollectionExtensions.cs b/Desktop.Linux/Startup/IServiceCollectionExtensions.cs index da9d6fe08..461311c61 100644 --- a/Desktop.Linux/Startup/IServiceCollectionExtensions.cs +++ b/Desktop.Linux/Startup/IServiceCollectionExtensions.cs @@ -2,7 +2,6 @@ using Remotely.Desktop.Shared.Startup; using Microsoft.Extensions.DependencyInjection; using Remotely.Desktop.Linux.Services; -using Remotely.Desktop.UI.ViewModels; using Remotely.Desktop.UI.Services; using Remotely.Desktop.UI.Startup; diff --git a/Desktop.Linux/Usings.cs b/Desktop.Linux/Usings.cs index c8962ecf9..dbcde0ccc 100644 --- a/Desktop.Linux/Usings.cs +++ b/Desktop.Linux/Usings.cs @@ -1,5 +1,4 @@ global using System; global using System.Collections.Generic; global using System.Linq; -global using System.Text; global using System.Threading.Tasks; diff --git a/Desktop.Native/Linux/LibX11.cs b/Desktop.Native/Linux/LibX11.cs index cc16107f2..96836a7f7 100644 --- a/Desktop.Native/Linux/LibX11.cs +++ b/Desktop.Native/Linux/LibX11.cs @@ -26,7 +26,7 @@ in this Software without prior written authorization from The Open Group. using System.Runtime.InteropServices; -namespace Remotely.Desktop.Shared.Native.Linux; +namespace Remotely.Desktop.Native.Linux; public static unsafe class LibX11 { diff --git a/Desktop.Native/Linux/LibXtst.cs b/Desktop.Native/Linux/LibXtst.cs index 462691974..90b92c38a 100644 --- a/Desktop.Native/Linux/LibXtst.cs +++ b/Desktop.Native/Linux/LibXtst.cs @@ -1,6 +1,6 @@ using System.Runtime.InteropServices; -namespace Remotely.Desktop.Shared.Native.Linux; +namespace Remotely.Desktop.Native.Linux; public class LibXtst { diff --git a/Desktop.Native/Linux/Libc.cs b/Desktop.Native/Linux/Libc.cs index bd7abccbd..4ae61c623 100644 --- a/Desktop.Native/Linux/Libc.cs +++ b/Desktop.Native/Linux/Libc.cs @@ -1,6 +1,6 @@ using System.Runtime.InteropServices; -namespace Remotely.Desktop.Shared.Native.Linux; +namespace Remotely.Desktop.Native.Linux; public class Libc { diff --git a/Desktop.Native/Linux/libXrandr.cs b/Desktop.Native/Linux/libXrandr.cs index 27ce7fdd5..e34de834b 100644 --- a/Desktop.Native/Linux/libXrandr.cs +++ b/Desktop.Native/Linux/libXrandr.cs @@ -29,7 +29,7 @@ using System.Runtime.InteropServices; -namespace Remotely.Desktop.Shared.Native.Linux; +namespace Remotely.Desktop.Native.Linux; public static class LibXrandr { diff --git a/Desktop.Native/Windows/ADVAPI32.cs b/Desktop.Native/Windows/ADVAPI32.cs index 8e8c661b2..f93054e8d 100644 --- a/Desktop.Native/Windows/ADVAPI32.cs +++ b/Desktop.Native/Windows/ADVAPI32.cs @@ -1,8 +1,7 @@ -using System; using System.Runtime.InteropServices; using System.Security; -namespace Remotely.Desktop.Shared.Native.Windows; +namespace Remotely.Desktop.Native.Windows; public static class ADVAPI32 { diff --git a/Desktop.Native/Windows/GDI32.cs b/Desktop.Native/Windows/GDI32.cs index 44526e4df..721dc0255 100644 --- a/Desktop.Native/Windows/GDI32.cs +++ b/Desktop.Native/Windows/GDI32.cs @@ -1,7 +1,6 @@ -using System; -using System.Runtime.InteropServices; +using System.Runtime.InteropServices; -namespace Remotely.Desktop.Shared.Native.Windows; +namespace Remotely.Desktop.Native.Windows; public static class GDI32 { diff --git a/Desktop.Native/Windows/Kernel32.cs b/Desktop.Native/Windows/Kernel32.cs index 410f6b46f..57461d4c7 100644 --- a/Desktop.Native/Windows/Kernel32.cs +++ b/Desktop.Native/Windows/Kernel32.cs @@ -1,7 +1,6 @@ -using System; using System.Runtime.InteropServices; -namespace Remotely.Desktop.Shared.Native.Windows; +namespace Remotely.Desktop.Native.Windows; public static class Kernel32 { diff --git a/Desktop.Native/Windows/SECUR32.cs b/Desktop.Native/Windows/SECUR32.cs index 2f6466327..86fdd2de3 100644 --- a/Desktop.Native/Windows/SECUR32.cs +++ b/Desktop.Native/Windows/SECUR32.cs @@ -1,8 +1,7 @@ -using Remotely.Desktop.Shared.Native.Windows; -using Microsoft.Win32.SafeHandles; -using System; +using Microsoft.Win32.SafeHandles; using System.Runtime.InteropServices; using System.Runtime.Versioning; +using Remotely.Desktop.Native.Windows; public static class SECUR32 { diff --git a/Desktop.Native/Windows/Shlwapi.cs b/Desktop.Native/Windows/Shlwapi.cs index f0b62fe31..8646231cc 100644 --- a/Desktop.Native/Windows/Shlwapi.cs +++ b/Desktop.Native/Windows/Shlwapi.cs @@ -1,6 +1,6 @@ using System.Runtime.InteropServices; -namespace Remotely.Desktop.Shared.Native.Windows; +namespace Remotely.Desktop.Native.Windows; // https://docs.microsoft.com/en-us/windows/win32/api/shlwapi/nf-shlwapi-isos public class Shlwapi diff --git a/Desktop.Native/Windows/User32.cs b/Desktop.Native/Windows/User32.cs index b7170acf6..7b5f0ac93 100644 --- a/Desktop.Native/Windows/User32.cs +++ b/Desktop.Native/Windows/User32.cs @@ -1,7 +1,7 @@ using Microsoft.Win32.SafeHandles; using System.Runtime.InteropServices; -namespace Remotely.Desktop.Shared.Native.Windows; +namespace Remotely.Desktop.Native.Windows; public static class User32 { diff --git a/Desktop.Native/Windows/WTSAPI32.cs b/Desktop.Native/Windows/WTSAPI32.cs index f170f32e5..251fb87d9 100644 --- a/Desktop.Native/Windows/WTSAPI32.cs +++ b/Desktop.Native/Windows/WTSAPI32.cs @@ -1,7 +1,6 @@ -using System; -using System.Runtime.InteropServices; +using System.Runtime.InteropServices; -namespace Remotely.Desktop.Shared.Native.Windows; +namespace Remotely.Desktop.Native.Windows; public static class WTSAPI32 { diff --git a/Desktop.Native/Windows/Win32Interop.cs b/Desktop.Native/Windows/Win32Interop.cs index 873e6e044..356e47b99 100644 --- a/Desktop.Native/Windows/Win32Interop.cs +++ b/Desktop.Native/Windows/Win32Interop.cs @@ -3,10 +3,10 @@ using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; using System.Text; -using static Remotely.Desktop.Shared.Native.Windows.ADVAPI32; -using static Remotely.Desktop.Shared.Native.Windows.User32; +using static Remotely.Desktop.Native.Windows.ADVAPI32; +using static Remotely.Desktop.Native.Windows.User32; -namespace Remotely.Desktop.Shared.Native.Windows; +namespace Remotely.Desktop.Native.Windows; // TODO: Use https://github.com/microsoft/CsWin32 for all p/invokes. public class Win32Interop @@ -222,7 +222,7 @@ public static uint ResolveWindowsSession(int targetSessionId) // If exact match is found, return that session. return (uint)targetSessionId; } - + if (Shlwapi.IsOS(OsType.OS_ANYSERVER)) { // If Windows Server, default to console session. diff --git a/Desktop.Shared/Reactive/AsyncRelayCommand.cs b/Desktop.Shared/Reactive/AsyncRelayCommand.cs index ac57274c2..288659358 100644 --- a/Desktop.Shared/Reactive/AsyncRelayCommand.cs +++ b/Desktop.Shared/Reactive/AsyncRelayCommand.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Input; +using System.Windows.Input; namespace Remotely.Desktop.Shared.Reactive; diff --git a/Desktop.Shared/Reactive/RelayCommand.cs b/Desktop.Shared/Reactive/RelayCommand.cs index c82a36b82..0b2ffd10f 100644 --- a/Desktop.Shared/Reactive/RelayCommand.cs +++ b/Desktop.Shared/Reactive/RelayCommand.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Input; +using System.Windows.Input; namespace Remotely.Desktop.Shared.Reactive; diff --git a/Desktop.Shared/Services/BrandingProvider.cs b/Desktop.Shared/Services/BrandingProvider.cs index 1d36a4d24..a4f75a729 100644 --- a/Desktop.Shared/Services/BrandingProvider.cs +++ b/Desktop.Shared/Services/BrandingProvider.cs @@ -1,14 +1,11 @@ -using Remotely.Desktop.Shared.Abstractions; -using Remotely.Desktop.Shared.Services; -using Remotely.Shared.Models; -using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Logging; using Remotely.Shared.Entities; using Remotely.Shared.Primitives; using Remotely.Shared.Services; using System.Diagnostics; using System.Net.Http.Json; -namespace Desktop.Shared.Services; +namespace Remotely.Desktop.Shared.Services; public interface IBrandingProvider { diff --git a/Desktop.Shared/Services/DesktopEnvironment.cs b/Desktop.Shared/Services/DesktopEnvironment.cs index ae7c796ca..095a5607d 100644 --- a/Desktop.Shared/Services/DesktopEnvironment.cs +++ b/Desktop.Shared/Services/DesktopEnvironment.cs @@ -1,7 +1,7 @@ -using Remotely.Desktop.Shared.Native.Linux; +using Remotely.Desktop.Native.Linux; using System.Security.Principal; -namespace Desktop.Shared.Services; +namespace Remotely.Desktop.Shared.Services; public interface IDesktopEnvironment { diff --git a/Desktop.Shared/Services/DesktopHubConnection.cs b/Desktop.Shared/Services/DesktopHubConnection.cs index 1185e094d..6749cf9ae 100644 --- a/Desktop.Shared/Services/DesktopHubConnection.cs +++ b/Desktop.Shared/Services/DesktopHubConnection.cs @@ -1,6 +1,5 @@ using Remotely.Desktop.Shared.Abstractions; using Remotely.Desktop.Shared.Messages; -using Remotely.Desktop.Shared.Native.Windows; using Remotely.Shared.Enums; using Remotely.Shared.Interfaces; using Remotely.Shared.Models; @@ -10,6 +9,7 @@ using Microsoft.Extensions.Logging; using Remotely.Shared.Primitives; using System.Diagnostics; +using Remotely.Desktop.Native.Windows; namespace Remotely.Desktop.Shared.Services; diff --git a/Desktop.Shared/Services/DtoMessageHandler.cs b/Desktop.Shared/Services/DtoMessageHandler.cs index 944c1f2e4..c03feab2f 100644 --- a/Desktop.Shared/Services/DtoMessageHandler.cs +++ b/Desktop.Shared/Services/DtoMessageHandler.cs @@ -1,10 +1,10 @@ using Remotely.Desktop.Shared.Abstractions; using Remotely.Desktop.Shared.Enums; -using Remotely.Desktop.Shared.Native.Windows; using Remotely.Shared.Helpers; using Remotely.Shared.Models.Dtos; using MessagePack; using Microsoft.Extensions.Logging; +using Remotely.Desktop.Native.Windows; namespace Remotely.Desktop.Shared.Services; diff --git a/Desktop.Shared/Services/IdleTimer.cs b/Desktop.Shared/Services/IdleTimer.cs index b7b948ed8..974997c60 100644 --- a/Desktop.Shared/Services/IdleTimer.cs +++ b/Desktop.Shared/Services/IdleTimer.cs @@ -1,5 +1,4 @@ using Remotely.Desktop.Shared.Abstractions; -using Microsoft.AspNetCore.SignalR.Client; using Microsoft.Extensions.Logging; using System.Timers; diff --git a/Desktop.Shared/Services/ScreenCaster.cs b/Desktop.Shared/Services/ScreenCaster.cs index ec9040c54..d4eaa45fe 100644 --- a/Desktop.Shared/Services/ScreenCaster.cs +++ b/Desktop.Shared/Services/ScreenCaster.cs @@ -1,4 +1,3 @@ -using Microsoft.Extensions.DependencyInjection; using SkiaSharp; using Remotely.Desktop.Shared.Abstractions; using Remotely.Desktop.Shared.Enums; @@ -6,10 +5,8 @@ using Microsoft.Extensions.Logging; using Remotely.Shared.Helpers; using Remotely.Shared.Models.Dtos; -using MessagePack; using Remotely.Shared.Services; using Microsoft.IO; -using System.Diagnostics; using Bitbound.SimpleMessenger; using Remotely.Desktop.Shared.Messages; diff --git a/Desktop.Shared/Services/Viewer.cs b/Desktop.Shared/Services/Viewer.cs index d16f00ed9..8ee408465 100644 --- a/Desktop.Shared/Services/Viewer.cs +++ b/Desktop.Shared/Services/Viewer.cs @@ -7,7 +7,7 @@ using Remotely.Desktop.Shared.ViewModels; using Microsoft.AspNetCore.SignalR.Client; using Remotely.Shared.Services; -using Remotely.Desktop.Shared.Native.Windows; +using Remotely.Desktop.Native.Windows; namespace Remotely.Desktop.Shared.Services; diff --git a/Desktop.Shared/Services/ViewerFactory.cs b/Desktop.Shared/Services/ViewerFactory.cs index 952f95318..b4b6ea9a9 100644 --- a/Desktop.Shared/Services/ViewerFactory.cs +++ b/Desktop.Shared/Services/ViewerFactory.cs @@ -2,11 +2,6 @@ using Remotely.Shared.Services; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Remotely.Desktop.Shared.Services; diff --git a/Desktop.Shared/Startup/IServiceCollectionExtensions.cs b/Desktop.Shared/Startup/IServiceCollectionExtensions.cs index 7d5f1fe81..3ed3a0816 100644 --- a/Desktop.Shared/Startup/IServiceCollectionExtensions.cs +++ b/Desktop.Shared/Startup/IServiceCollectionExtensions.cs @@ -4,8 +4,6 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Bitbound.SimpleMessenger; -using Desktop.Shared.Services; -using Remotely.Desktop.Shared.Abstractions; namespace Remotely.Desktop.Shared.Startup; diff --git a/Desktop.Shared/Startup/IServiceProviderExtensions.cs b/Desktop.Shared/Startup/IServiceProviderExtensions.cs index 2cee44933..5ef55aafb 100644 --- a/Desktop.Shared/Startup/IServiceProviderExtensions.cs +++ b/Desktop.Shared/Startup/IServiceProviderExtensions.cs @@ -1,6 +1,5 @@ using Remotely.Desktop.Shared.Abstractions; using Remotely.Desktop.Shared.Enums; -using Remotely.Desktop.Shared.Native.Windows; using Remotely.Desktop.Shared.Services; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; @@ -8,6 +7,7 @@ using System.CommandLine; using System.CommandLine.NamingConventionBinder; using System.Runtime.Versioning; +using Remotely.Desktop.Native.Windows; namespace Remotely.Desktop.Shared.Startup; diff --git a/Desktop.UI/Controls/Dialogs/MessageBox.axaml.cs b/Desktop.UI/Controls/Dialogs/MessageBox.axaml.cs index 9c4fab839..ccb6165ae 100644 --- a/Desktop.UI/Controls/Dialogs/MessageBox.axaml.cs +++ b/Desktop.UI/Controls/Dialogs/MessageBox.axaml.cs @@ -1,10 +1,8 @@ using Avalonia.Controls; -using Avalonia.Controls.ApplicationLifetimes; using Avalonia.Markup.Xaml; using CommunityToolkit.Diagnostics; using Remotely.Desktop.Shared; using Microsoft.Extensions.DependencyInjection; -using System.Threading; namespace Remotely.Desktop.UI.Controls.Dialogs; diff --git a/Desktop.UI/Services/ChatUiService.cs b/Desktop.UI/Services/ChatUiService.cs index 2c6a0fe0b..9e021b43a 100644 --- a/Desktop.UI/Services/ChatUiService.cs +++ b/Desktop.UI/Services/ChatUiService.cs @@ -1,8 +1,6 @@ -using Avalonia.Controls; using Remotely.Desktop.Shared.Abstractions; using System.ComponentModel; using Remotely.Desktop.UI.Controls.Dialogs; -using CommunityToolkit.Diagnostics; using Remotely.Shared.Models; namespace Remotely.Desktop.UI.Services; diff --git a/Desktop.UI/Services/ClipboardService.cs b/Desktop.UI/Services/ClipboardService.cs index 6d07edf80..6f2cdb69a 100644 --- a/Desktop.UI/Services/ClipboardService.cs +++ b/Desktop.UI/Services/ClipboardService.cs @@ -1,6 +1,5 @@ using Remotely.Desktop.Shared.Abstractions; using Microsoft.Extensions.Logging; -using System.Threading; namespace Remotely.Desktop.UI.Services; diff --git a/Desktop.UI/Services/DialogProvider.cs b/Desktop.UI/Services/DialogProvider.cs index cbc01d199..75b244142 100644 --- a/Desktop.UI/Services/DialogProvider.cs +++ b/Desktop.UI/Services/DialogProvider.cs @@ -1,10 +1,4 @@ using Remotely.Desktop.UI.Controls.Dialogs; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; namespace Remotely.Desktop.UI.Services; diff --git a/Desktop.UI/Services/RemoteControlAccessService.cs b/Desktop.UI/Services/RemoteControlAccessService.cs index 167d25b4a..760c0ac0e 100644 --- a/Desktop.UI/Services/RemoteControlAccessService.cs +++ b/Desktop.UI/Services/RemoteControlAccessService.cs @@ -1,7 +1,6 @@ using Remotely.Desktop.Shared.Abstractions; using Remotely.Shared.Enums; using Microsoft.Extensions.Logging; -using System.Threading; namespace Remotely.Desktop.UI.Services; diff --git a/Desktop.UI/Services/UiDispatcher.cs b/Desktop.UI/Services/UiDispatcher.cs index 35b30834a..4c0bd4761 100644 --- a/Desktop.UI/Services/UiDispatcher.cs +++ b/Desktop.UI/Services/UiDispatcher.cs @@ -6,7 +6,6 @@ using Remotely.Shared.Helpers; using Microsoft.Extensions.Logging; using Remotely.Shared.Primitives; -using System.Threading; namespace Remotely.Desktop.UI.Services; diff --git a/Desktop.UI/Services/ViewModelFactory.cs b/Desktop.UI/Services/ViewModelFactory.cs index be9157613..f6859c7d2 100644 --- a/Desktop.UI/Services/ViewModelFactory.cs +++ b/Desktop.UI/Services/ViewModelFactory.cs @@ -2,8 +2,6 @@ using Remotely.Desktop.Shared.Services; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; -using System.IO; -using Desktop.Shared.Services; namespace Remotely.Desktop.UI.Services; diff --git a/Desktop.UI/ViewModels/BrandedViewModelBase.cs b/Desktop.UI/ViewModels/BrandedViewModelBase.cs index 927d4f882..0aff8c976 100644 --- a/Desktop.UI/ViewModels/BrandedViewModelBase.cs +++ b/Desktop.UI/ViewModels/BrandedViewModelBase.cs @@ -1,14 +1,10 @@ using Avalonia.Controls; -using Avalonia.Media; using Avalonia.Media.Imaging; -using Remotely.Desktop.Shared.Abstractions; using Remotely.Desktop.Shared.Reactive; -using Remotely.Shared.Models; using Microsoft.Extensions.Logging; using Remotely.Shared.Entities; -using System.IO; using System.Reflection; -using Desktop.Shared.Services; +using Remotely.Desktop.Shared.Services; namespace Remotely.Desktop.UI.ViewModels; diff --git a/Desktop.UI/ViewModels/ChatWindowViewModel.cs b/Desktop.UI/ViewModels/ChatWindowViewModel.cs index 04cdf4cba..899d2b2f3 100644 --- a/Desktop.UI/ViewModels/ChatWindowViewModel.cs +++ b/Desktop.UI/ViewModels/ChatWindowViewModel.cs @@ -1,14 +1,12 @@ using Avalonia.Controls; using System.Collections.ObjectModel; -using System.IO; using System.Text.Json; using System.Windows.Input; -using Remotely.Desktop.Shared.Abstractions; using Microsoft.Extensions.Logging; using Remotely.Desktop.Shared.Reactive; using Microsoft.Extensions.DependencyInjection; using Remotely.Shared.Models; -using Desktop.Shared.Services; +using Remotely.Desktop.Shared.Services; namespace Remotely.Desktop.UI.ViewModels; diff --git a/Desktop.UI/ViewModels/Fakes/FakeBrandedViewModelBase.cs b/Desktop.UI/ViewModels/Fakes/FakeBrandedViewModelBase.cs index ece7a67b8..50de39262 100644 --- a/Desktop.UI/ViewModels/Fakes/FakeBrandedViewModelBase.cs +++ b/Desktop.UI/ViewModels/Fakes/FakeBrandedViewModelBase.cs @@ -1,11 +1,7 @@ using Avalonia.Controls; -using Avalonia.Media; using Avalonia.Media.Imaging; -using Remotely.Desktop.UI.Controls.Dialogs; -using Remotely.Shared.Models; using Remotely.Shared.Entities; using System.Diagnostics; -using System.IO; namespace Remotely.Desktop.UI.ViewModels.Fakes; diff --git a/Desktop.UI/ViewModels/Fakes/FakeMainViewViewModel.cs b/Desktop.UI/ViewModels/Fakes/FakeMainViewViewModel.cs index 7cd5ef4d5..b1de8b17d 100644 --- a/Desktop.UI/ViewModels/Fakes/FakeMainViewViewModel.cs +++ b/Desktop.UI/ViewModels/Fakes/FakeMainViewViewModel.cs @@ -5,7 +5,6 @@ using Remotely.Shared.Models; using Remotely.Shared.Models.Dtos; using System.Collections.ObjectModel; -using System.Threading; using System.Windows.Input; namespace Remotely.Desktop.UI.ViewModels.Fakes; diff --git a/Desktop.UI/ViewModels/FileTransferWindowViewModel.cs b/Desktop.UI/ViewModels/FileTransferWindowViewModel.cs index 98b1a4556..66e0cf6c8 100644 --- a/Desktop.UI/ViewModels/FileTransferWindowViewModel.cs +++ b/Desktop.UI/ViewModels/FileTransferWindowViewModel.cs @@ -2,12 +2,10 @@ using Remotely.Desktop.Shared.Services; using Remotely.Desktop.Shared.ViewModels; using System.Collections.ObjectModel; -using System.IO; using System.Windows.Input; using Remotely.Desktop.Shared.Abstractions; using Microsoft.Extensions.Logging; using Remotely.Desktop.Shared.Reactive; -using Desktop.Shared.Services; namespace Remotely.Desktop.UI.ViewModels; diff --git a/Desktop.UI/ViewModels/HostNamePromptViewModel.cs b/Desktop.UI/ViewModels/HostNamePromptViewModel.cs index eefdeab96..158c69e0a 100644 --- a/Desktop.UI/ViewModels/HostNamePromptViewModel.cs +++ b/Desktop.UI/ViewModels/HostNamePromptViewModel.cs @@ -1,9 +1,8 @@ using Avalonia.Controls; using System.Windows.Input; -using Remotely.Desktop.Shared.Abstractions; using Microsoft.Extensions.Logging; using Remotely.Desktop.Shared.Reactive; -using Desktop.Shared.Services; +using Remotely.Desktop.Shared.Services; namespace Remotely.Desktop.UI.ViewModels; diff --git a/Desktop.UI/ViewModels/MainViewViewModel.cs b/Desktop.UI/ViewModels/MainViewViewModel.cs index 4e2cbf866..2230cbbb2 100644 --- a/Desktop.UI/ViewModels/MainViewViewModel.cs +++ b/Desktop.UI/ViewModels/MainViewViewModel.cs @@ -1,17 +1,13 @@ using Avalonia.Controls; -using Avalonia.Threading; using Remotely.Desktop.Shared.Services; using Remotely.Shared.Models; using System.Collections.ObjectModel; using System.Diagnostics; using System.Windows.Input; -using Remotely.Desktop.Shared.Abstractions; using Microsoft.Extensions.Logging; using Remotely.Desktop.Shared.Reactive; using Microsoft.Extensions.DependencyInjection; using Remotely.Desktop.UI.Controls.Dialogs; -using Remotely.Desktop.Shared.Native.Linux; -using Desktop.Shared.Services; namespace Remotely.Desktop.UI.ViewModels; diff --git a/Desktop.UI/ViewModels/MainWindowViewModel.cs b/Desktop.UI/ViewModels/MainWindowViewModel.cs index 34d69dee1..c720781d2 100644 --- a/Desktop.UI/ViewModels/MainWindowViewModel.cs +++ b/Desktop.UI/ViewModels/MainWindowViewModel.cs @@ -1,6 +1,5 @@ -using Remotely.Desktop.Shared.Abstractions; -using Microsoft.Extensions.Logging; -using Desktop.Shared.Services; +using Microsoft.Extensions.Logging; +using Remotely.Desktop.Shared.Services; namespace Remotely.Desktop.UI.ViewModels; diff --git a/Desktop.UI/ViewModels/MessageBoxViewModel.cs b/Desktop.UI/ViewModels/MessageBoxViewModel.cs index ad07f06fc..bbf5e44e4 100644 --- a/Desktop.UI/ViewModels/MessageBoxViewModel.cs +++ b/Desktop.UI/ViewModels/MessageBoxViewModel.cs @@ -1,10 +1,9 @@ using Avalonia.Controls; using System.Windows.Input; using Remotely.Desktop.Shared.Reactive; -using Remotely.Desktop.Shared.Abstractions; using Microsoft.Extensions.Logging; using Remotely.Desktop.UI.Controls.Dialogs; -using Desktop.Shared.Services; +using Remotely.Desktop.Shared.Services; namespace Remotely.Desktop.UI.ViewModels; diff --git a/Desktop.UI/ViewModels/PromptForAccessWindowViewModel.cs b/Desktop.UI/ViewModels/PromptForAccessWindowViewModel.cs index fa70d37ac..500340812 100644 --- a/Desktop.UI/ViewModels/PromptForAccessWindowViewModel.cs +++ b/Desktop.UI/ViewModels/PromptForAccessWindowViewModel.cs @@ -1,9 +1,8 @@ using Avalonia.Controls; -using Remotely.Desktop.Shared.Abstractions; using Remotely.Desktop.Shared.Reactive; using Microsoft.Extensions.Logging; using System.Windows.Input; -using Desktop.Shared.Services; +using Remotely.Desktop.Shared.Services; namespace Remotely.Desktop.UI.ViewModels; diff --git a/Desktop.UI/ViewModels/SessionIndicatorWindowViewModel.cs b/Desktop.UI/ViewModels/SessionIndicatorWindowViewModel.cs index 6ac785ef4..77529e664 100644 --- a/Desktop.UI/ViewModels/SessionIndicatorWindowViewModel.cs +++ b/Desktop.UI/ViewModels/SessionIndicatorWindowViewModel.cs @@ -1,8 +1,7 @@ -using Remotely.Desktop.Shared; -using Remotely.Desktop.Shared.Abstractions; +using Remotely.Desktop.Shared.Abstractions; using Remotely.Desktop.UI.Controls.Dialogs; using Microsoft.Extensions.Logging; -using Desktop.Shared.Services; +using Remotely.Desktop.Shared.Services; namespace Remotely.Desktop.UI.ViewModels; diff --git a/Desktop.UI/Views/ChatWindow.axaml.cs b/Desktop.UI/Views/ChatWindow.axaml.cs index b3c40ae56..3ad02f514 100644 --- a/Desktop.UI/Views/ChatWindow.axaml.cs +++ b/Desktop.UI/Views/ChatWindow.axaml.cs @@ -1,5 +1,4 @@ -using Avalonia; -using Avalonia.Controls; +using Avalonia.Controls; using Avalonia.Interactivity; namespace Remotely.Desktop.UI.Views; diff --git a/Desktop.UI/Views/SessionIndicatorWindow.axaml.cs b/Desktop.UI/Views/SessionIndicatorWindow.axaml.cs index 6cfecf3f9..7c7092225 100644 --- a/Desktop.UI/Views/SessionIndicatorWindow.axaml.cs +++ b/Desktop.UI/Views/SessionIndicatorWindow.axaml.cs @@ -1,10 +1,5 @@ using Avalonia; using Avalonia.Controls; -using Avalonia.Markup.Xaml; -using Microsoft.Extensions.DependencyInjection; -using Remotely.Desktop.Shared; -using Remotely.Desktop.Shared.Abstractions; -using Remotely.Desktop.UI.Controls.Dialogs; namespace Remotely.Desktop.UI.Views; diff --git a/Desktop.Win/Program.cs b/Desktop.Win/Program.cs index 952664775..29f615f4b 100644 --- a/Desktop.Win/Program.cs +++ b/Desktop.Win/Program.cs @@ -1,5 +1,4 @@ using Avalonia; -using Desktop.Shared.Services; using Remotely.Desktop.Shared.Services; using Remotely.Desktop.Shared.Startup; using Remotely.Desktop.UI; @@ -10,10 +9,7 @@ using Remotely.Shared.Utilities; using System.Diagnostics; using System.Runtime.Versioning; -using System.Threading; -using Remotely.Desktop.Shared.Abstractions; using Remotely.Desktop.UI.Startup; -using Remotely.Desktop.Win.Services; namespace Remotely.Desktop.Win; diff --git a/Desktop.Win/Services/AppStartup.cs b/Desktop.Win/Services/AppStartup.cs index 42160ee02..bdd713a6f 100644 --- a/Desktop.Win/Services/AppStartup.cs +++ b/Desktop.Win/Services/AppStartup.cs @@ -1,7 +1,6 @@ -using Desktop.Shared.Services; +using Remotely.Desktop.Native.Windows; using Remotely.Desktop.Shared.Abstractions; using Remotely.Desktop.Shared.Enums; -using Remotely.Desktop.Shared.Native.Windows; using Remotely.Desktop.Shared.Services; using Remotely.Desktop.UI.Services; using Remotely.Shared.Models; diff --git a/Desktop.Win/Services/CursorIconWatcherWin.cs b/Desktop.Win/Services/CursorIconWatcherWin.cs index 4c263cfc3..57ecc6482 100644 --- a/Desktop.Win/Services/CursorIconWatcherWin.cs +++ b/Desktop.Win/Services/CursorIconWatcherWin.cs @@ -1,5 +1,5 @@ -using Remotely.Desktop.Shared.Abstractions; -using Remotely.Desktop.Shared.Native.Windows; +using Remotely.Desktop.Native.Windows; +using Remotely.Desktop.Shared.Abstractions; using Remotely.Shared.Models; using System.Drawing; using System.Drawing.Imaging; diff --git a/Desktop.Win/Services/KeyboardMouseInputWin.cs b/Desktop.Win/Services/KeyboardMouseInputWin.cs index 8261c6d94..65b856643 100644 --- a/Desktop.Win/Services/KeyboardMouseInputWin.cs +++ b/Desktop.Win/Services/KeyboardMouseInputWin.cs @@ -1,13 +1,13 @@ -using Remotely.Desktop.Shared.Abstractions; +using Remotely.Desktop.Native.Windows; +using Remotely.Desktop.Shared.Abstractions; using Remotely.Desktop.Shared.Enums; -using Remotely.Desktop.Shared.Native.Windows; using Remotely.Desktop.Shared.Services; using Remotely.Desktop.UI.Services; using System.Collections.Concurrent; using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; using System.Runtime.Versioning; -using static Remotely.Desktop.Shared.Native.Windows.User32; +using static Remotely.Desktop.Native.Windows.User32; namespace Remotely.Desktop.Win.Services; diff --git a/Desktop.Win/Services/ScreenCapturerWin.cs b/Desktop.Win/Services/ScreenCapturerWin.cs index 96e668308..ca06b0128 100644 --- a/Desktop.Win/Services/ScreenCapturerWin.cs +++ b/Desktop.Win/Services/ScreenCapturerWin.cs @@ -22,7 +22,6 @@ // THE SOFTWARE. using Remotely.Desktop.Shared.Abstractions; -using Remotely.Desktop.Shared.Native.Windows; using Remotely.Desktop.Shared.Services; using Remotely.Shared.Models; using Bitbound.SimpleMessenger; @@ -42,6 +41,7 @@ using Result = Remotely.Shared.Primitives.Result; using Remotely.Desktop.Shared.Messages; using Remotely.Shared.Primitives; +using Remotely.Desktop.Native.Windows; namespace Remotely.Desktop.Win.Services; diff --git a/Server/API/AgentUpdateController.cs b/Server/API/AgentUpdateController.cs index 08963e1cc..18ac63814 100644 --- a/Server/API/AgentUpdateController.cs +++ b/Server/API/AgentUpdateController.cs @@ -1,17 +1,11 @@ -using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.RateLimiting; using Microsoft.AspNetCore.SignalR; -using Microsoft.Extensions.Logging; using Remotely.Server.Hubs; using Remotely.Server.RateLimiting; using Remotely.Server.Services; using Remotely.Shared.Interfaces; -using System; -using System.IO; -using System.Linq; using System.Net; -using System.Threading.Tasks; namespace Remotely.Server.API; diff --git a/Server/API/AlertsController.cs b/Server/API/AlertsController.cs index 11aa3e15b..773082d41 100644 --- a/Server/API/AlertsController.cs +++ b/Server/API/AlertsController.cs @@ -1,19 +1,10 @@ using Remotely.Shared.Extensions; using Microsoft.AspNetCore.Mvc; -using Microsoft.Build.Framework; -using Microsoft.Extensions.Logging; using Remotely.Server.Auth; using Remotely.Server.Extensions; using Remotely.Server.Services; using Remotely.Shared.Models; -using System; -using System.IO; -using System.Net; -using System.Net.Http; -using System.Net.Http.Headers; -using System.Net.Http.Json; using System.Text.Json; -using System.Threading.Tasks; namespace Remotely.Server.API; diff --git a/Server/API/BrandingController.cs b/Server/API/BrandingController.cs index d455cf9ce..0a4775b32 100644 --- a/Server/API/BrandingController.cs +++ b/Server/API/BrandingController.cs @@ -1,14 +1,7 @@ using Remotely.Shared.Extensions; -using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using Microsoft.Build.Framework; -using Microsoft.Extensions.Logging; using Remotely.Server.Services; using Remotely.Shared.Entities; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace Remotely.Server.API; diff --git a/Server/API/DevicesController.cs b/Server/API/DevicesController.cs index 8934d25a5..84b9b9328 100644 --- a/Server/API/DevicesController.cs +++ b/Server/API/DevicesController.cs @@ -1,15 +1,11 @@ using Remotely.Shared.Extensions; using Microsoft.AspNetCore.Http.Extensions; using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Logging; using Remotely.Server.Auth; using Remotely.Server.Extensions; using Remotely.Server.Services; using Remotely.Shared.Entities; using Remotely.Shared.Models; -using System; -using System.Collections.Generic; -using System.Threading.Tasks; namespace Remotely.Server.API; diff --git a/Server/API/FileSharingController.cs b/Server/API/FileSharingController.cs index d99ada7fd..4cd0f8b54 100644 --- a/Server/API/FileSharingController.cs +++ b/Server/API/FileSharingController.cs @@ -3,10 +3,6 @@ using Remotely.Server.Extensions; using Remotely.Server.Services; using Remotely.Shared; -using Remotely.Shared.Models; -using System; -using System.Collections.Generic; -using System.Threading.Tasks; namespace Remotely.Server.API; diff --git a/Server/API/HealthCheckController.cs b/Server/API/HealthCheckController.cs index 7caa28673..1ccb11e6a 100644 --- a/Server/API/HealthCheckController.cs +++ b/Server/API/HealthCheckController.cs @@ -1,8 +1,6 @@ -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; using Remotely.Server.Auth; using Remotely.Server.Services; -using System.Threading.Tasks; namespace Remotely.Server.API; diff --git a/Server/API/OrganizationManagementController.cs b/Server/API/OrganizationManagementController.cs index 66942521e..fbe1eabca 100644 --- a/Server/API/OrganizationManagementController.cs +++ b/Server/API/OrganizationManagementController.cs @@ -2,7 +2,6 @@ using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.WebUtilities; -using Microsoft.Extensions.Logging; using Remotely.Server.Auth; using Remotely.Server.Extensions; using Remotely.Server.Services; @@ -10,7 +9,6 @@ using Remotely.Shared.ViewModels; using System.Text; using System.Text.Encodings.Web; -using System.Threading.Tasks; // For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 diff --git a/Server/API/SavedScriptsController.cs b/Server/API/SavedScriptsController.cs index 8aed4a79c..142ced714 100644 --- a/Server/API/SavedScriptsController.cs +++ b/Server/API/SavedScriptsController.cs @@ -1,12 +1,7 @@ -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; using Remotely.Server.Auth; using Remotely.Server.Services; using Remotely.Shared.Entities; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace Remotely.Server.API; diff --git a/Server/API/ScriptResultsController.cs b/Server/API/ScriptResultsController.cs index 662e82072..7092c14d6 100644 --- a/Server/API/ScriptResultsController.cs +++ b/Server/API/ScriptResultsController.cs @@ -1,16 +1,11 @@ using Remotely.Shared.Extensions; using Microsoft.AspNetCore.Mvc; -using Microsoft.Build.Framework; using Microsoft.EntityFrameworkCore; -using Microsoft.Extensions.Logging; using Remotely.Server.Auth; using Remotely.Server.Extensions; using Remotely.Server.Services; using Remotely.Shared.Dtos; -using Remotely.Shared.Models; -using System; using System.Text; -using System.Threading.Tasks; namespace Remotely.Server.API; diff --git a/Server/API/ScriptingController.cs b/Server/API/ScriptingController.cs index 06dfc96cd..4f38550d9 100644 --- a/Server/API/ScriptingController.cs +++ b/Server/API/ScriptingController.cs @@ -4,9 +4,6 @@ using Remotely.Server.Hubs; using Remotely.Server.Services; using Remotely.Shared.Utilities; -using System; -using System.IO; -using System.Threading.Tasks; using Remotely.Shared.Enums; using Remotely.Server.Auth; using Remotely.Shared.Helpers; diff --git a/Server/API/ServerLogsController.cs b/Server/API/ServerLogsController.cs index d094135b2..a30e04920 100644 --- a/Server/API/ServerLogsController.cs +++ b/Server/API/ServerLogsController.cs @@ -1,12 +1,6 @@ using Microsoft.AspNetCore.Mvc; using Remotely.Server.Auth; -using System.Text; -using System.Text.Json; -using System; -using Microsoft.Extensions.Logging; using Remotely.Server.Services; -using System.IO; -using System.Threading.Tasks; namespace Remotely.Server.API; diff --git a/Server/Auth/ApiAuthorizationFilter.cs b/Server/Auth/ApiAuthorizationFilter.cs index d09f5d2c6..0d786ce9e 100644 --- a/Server/Auth/ApiAuthorizationFilter.cs +++ b/Server/Auth/ApiAuthorizationFilter.cs @@ -1,15 +1,8 @@ -using Remotely.Shared.Extensions; -using Microsoft.AspNetCore.DataProtection; -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; -using Microsoft.Build.Framework; -using Microsoft.Extensions.Logging; using Remotely.Server.Services; using Remotely.Shared; -using System; using System.Net; -using System.Text; -using System.Threading.Tasks; namespace Remotely.Server.Auth; diff --git a/Server/Auth/ExpiringTokenFilter.cs b/Server/Auth/ExpiringTokenFilter.cs index 046279577..40a599b2f 100644 --- a/Server/Auth/ExpiringTokenFilter.cs +++ b/Server/Auth/ExpiringTokenFilter.cs @@ -1,12 +1,9 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; -using Microsoft.Extensions.Logging; using Remotely.Server.Services; using Remotely.Shared; using Remotely.Shared.Utilities; -using System; using System.Net; -using System.Threading.Tasks; namespace Remotely.Server.Auth; diff --git a/Server/Auth/OrganizationAdminRequirementHandler.cs b/Server/Auth/OrganizationAdminRequirementHandler.cs index 487895176..72db3588c 100644 --- a/Server/Auth/OrganizationAdminRequirementHandler.cs +++ b/Server/Auth/OrganizationAdminRequirementHandler.cs @@ -1,8 +1,5 @@ using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Identity; using Remotely.Server.Services; -using Remotely.Shared.Entities; -using System.Threading.Tasks; namespace Remotely.Server.Auth; diff --git a/Server/Auth/ServerAdminRequirementHandler.cs b/Server/Auth/ServerAdminRequirementHandler.cs index ee5be6aac..e6b76bf03 100644 --- a/Server/Auth/ServerAdminRequirementHandler.cs +++ b/Server/Auth/ServerAdminRequirementHandler.cs @@ -1,10 +1,7 @@ #nullable enable using Microsoft.AspNetCore.Authorization; -using Microsoft.AspNetCore.Identity; using Remotely.Server.Services; -using Remotely.Shared.Entities; -using System.Threading.Tasks; namespace Remotely.Server.Auth; diff --git a/Server/Auth/TwoFactorRequiredRequirement.cs b/Server/Auth/TwoFactorRequiredRequirement.cs index 3f310d871..4fb18eadf 100644 --- a/Server/Auth/TwoFactorRequiredRequirement.cs +++ b/Server/Auth/TwoFactorRequiredRequirement.cs @@ -1,8 +1,4 @@ using Microsoft.AspNetCore.Authorization; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace Remotely.Server.Auth; diff --git a/Server/Components/Account/IdentityNoOpEmailSender.cs b/Server/Components/Account/IdentityNoOpEmailSender.cs index a6f08c4c0..6b7f508bc 100644 --- a/Server/Components/Account/IdentityNoOpEmailSender.cs +++ b/Server/Components/Account/IdentityNoOpEmailSender.cs @@ -1,4 +1,3 @@ -using Remotely.Server.Data; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.UI.Services; using Remotely.Shared.Entities; diff --git a/Server/Components/Account/IdentityRevalidatingAuthenticationStateProvider.cs b/Server/Components/Account/IdentityRevalidatingAuthenticationStateProvider.cs index 595f51051..fe1a0c02d 100644 --- a/Server/Components/Account/IdentityRevalidatingAuthenticationStateProvider.cs +++ b/Server/Components/Account/IdentityRevalidatingAuthenticationStateProvider.cs @@ -1,4 +1,3 @@ -using Remotely.Server.Data; using Microsoft.AspNetCore.Components.Authorization; using Microsoft.AspNetCore.Components.Server; using Microsoft.AspNetCore.Identity; diff --git a/Server/Components/Account/IdentityUserAccessor.cs b/Server/Components/Account/IdentityUserAccessor.cs index f01bd4db5..89642ab22 100644 --- a/Server/Components/Account/IdentityUserAccessor.cs +++ b/Server/Components/Account/IdentityUserAccessor.cs @@ -1,4 +1,3 @@ -using Remotely.Server.Data; using Microsoft.AspNetCore.Identity; using Remotely.Shared.Entities; diff --git a/Server/Components/AuthComponentBase.cs b/Server/Components/AuthComponentBase.cs index dcd4736f2..0f1279e65 100644 --- a/Server/Components/AuthComponentBase.cs +++ b/Server/Components/AuthComponentBase.cs @@ -1,12 +1,8 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Components; -using Microsoft.Extensions.Logging; using Remotely.Server.Services; using Remotely.Shared.Entities; -using System; using System.Diagnostics.CodeAnalysis; -using System.Threading; -using System.Threading.Tasks; namespace Remotely.Server.Components; diff --git a/Server/Components/Devices/ChatFrame.razor.cs b/Server/Components/Devices/ChatFrame.razor.cs index 9120447d9..b31e98912 100644 --- a/Server/Components/Devices/ChatFrame.razor.cs +++ b/Server/Components/Devices/ChatFrame.razor.cs @@ -1,16 +1,9 @@ -using Bitbound.SimpleMessenger; -using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Web; +using Microsoft.AspNetCore.Components; using Remotely.Server.Hubs; using Remotely.Server.Models.Messages; using Remotely.Server.Services.Stores; -using Remotely.Shared.Entities; using Remotely.Shared.Enums; using Remotely.Shared.ViewModels; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace Remotely.Server.Components.Devices; diff --git a/Server/Components/Devices/DeviceCard.razor.cs b/Server/Components/Devices/DeviceCard.razor.cs index ccd14236c..58a46c521 100644 --- a/Server/Components/Devices/DeviceCard.razor.cs +++ b/Server/Components/Devices/DeviceCard.razor.cs @@ -1,5 +1,4 @@ -using Bitbound.SimpleMessenger; -using Microsoft.AspNetCore.Components; +using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Forms; using Microsoft.AspNetCore.Components.Web; using Remotely.Server.Enums; @@ -12,11 +11,8 @@ using Remotely.Shared.Enums; using Remotely.Shared.Utilities; using Remotely.Shared.ViewModels; -using System; using System.Collections.Concurrent; -using System.Linq; using System.Text.Json; -using System.Threading.Tasks; namespace Remotely.Server.Components.Devices; diff --git a/Server/Components/Devices/DevicesFrame.razor.cs b/Server/Components/Devices/DevicesFrame.razor.cs index 29a249d10..1bc82627f 100644 --- a/Server/Components/Devices/DevicesFrame.razor.cs +++ b/Server/Components/Devices/DevicesFrame.razor.cs @@ -1,9 +1,6 @@ -using Bitbound.SimpleMessenger; -using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Components; -using Microsoft.Build.Framework; using Microsoft.EntityFrameworkCore; -using Microsoft.Extensions.Logging; using Remotely.Server.Enums; using Remotely.Server.Hubs; using Remotely.Server.Models.Messages; @@ -12,15 +9,10 @@ using Remotely.Shared.Attributes; using Remotely.Shared.Entities; using Remotely.Shared.Utilities; -using System; using System.Collections; -using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; -using System.Linq; using System.Reflection; -using System.Threading; -using System.Threading.Tasks; namespace Remotely.Server.Components.Devices; diff --git a/Server/Components/MessengerSubscriber.cs b/Server/Components/MessengerSubscriber.cs index ec641cd18..2a6c4d492 100644 --- a/Server/Components/MessengerSubscriber.cs +++ b/Server/Components/MessengerSubscriber.cs @@ -1,10 +1,6 @@ using Bitbound.SimpleMessenger; using Microsoft.AspNetCore.Components; -using System; using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; namespace Remotely.Server.Components; diff --git a/Server/Components/ModalContents/EditDeviceGroup.razor.cs b/Server/Components/ModalContents/EditDeviceGroup.razor.cs index 90dfae74f..a7bf40879 100644 --- a/Server/Components/ModalContents/EditDeviceGroup.razor.cs +++ b/Server/Components/ModalContents/EditDeviceGroup.razor.cs @@ -2,8 +2,6 @@ using Microsoft.AspNetCore.Components; using Remotely.Server.Services; using Remotely.Shared.Entities; -using System.Linq; -using System.Threading.Tasks; namespace Remotely.Server.Components.ModalContents; diff --git a/Server/Components/Pages/ServerConfig.razor.cs b/Server/Components/Pages/ServerConfig.razor.cs index e60be7f66..c0c37f99f 100644 --- a/Server/Components/Pages/ServerConfig.razor.cs +++ b/Server/Components/Pages/ServerConfig.razor.cs @@ -8,7 +8,6 @@ using Remotely.Shared.Entities; using Remotely.Shared.Interfaces; using System.Net; -using System.Text.Json; namespace Remotely.Server.Components.Pages; diff --git a/Server/Components/Scripts/SavedScripts.razor.cs b/Server/Components/Scripts/SavedScripts.razor.cs index a2ae1eb1a..847e9b532 100644 --- a/Server/Components/Scripts/SavedScripts.razor.cs +++ b/Server/Components/Scripts/SavedScripts.razor.cs @@ -1,16 +1,10 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Forms; -using Microsoft.CodeAnalysis.Scripting; using Remotely.Server.Components.Pages; using Remotely.Server.Enums; using Remotely.Server.Services; using Remotely.Shared.Entities; -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Linq; -using System.Threading.Tasks; namespace Remotely.Server.Components.Scripts; diff --git a/Server/Components/Scripts/ScriptSchedules.razor.cs b/Server/Components/Scripts/ScriptSchedules.razor.cs index 068e9bf09..258194494 100644 --- a/Server/Components/Scripts/ScriptSchedules.razor.cs +++ b/Server/Components/Scripts/ScriptSchedules.razor.cs @@ -6,10 +6,6 @@ using Remotely.Server.Services; using Remotely.Shared.Entities; using Remotely.Shared.Utilities; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace Remotely.Server.Components.Scripts; diff --git a/Server/Components/Scripts/ScriptTreeNode.cs b/Server/Components/Scripts/ScriptTreeNode.cs index 86384907a..579a1d55a 100644 --- a/Server/Components/Scripts/ScriptTreeNode.cs +++ b/Server/Components/Scripts/ScriptTreeNode.cs @@ -1,9 +1,5 @@ using Remotely.Server.Components.TreeView; using Remotely.Shared.Entities; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace Remotely.Server.Components.Scripts; diff --git a/Server/Components/TreeView/TreeItemType.cs b/Server/Components/TreeView/TreeItemType.cs index 23e67a3a1..260c8d866 100644 --- a/Server/Components/TreeView/TreeItemType.cs +++ b/Server/Components/TreeView/TreeItemType.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - -namespace Remotely.Server.Components.TreeView; +namespace Remotely.Server.Components.TreeView; public enum TreeItemType { diff --git a/Server/Components/TreeView/TreeView.razor.cs b/Server/Components/TreeView/TreeView.razor.cs index 694cf9046..2869739fa 100644 --- a/Server/Components/TreeView/TreeView.razor.cs +++ b/Server/Components/TreeView/TreeView.razor.cs @@ -1,8 +1,4 @@ using Microsoft.AspNetCore.Components; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace Remotely.Server.Components.TreeView; diff --git a/Server/Components/TreeView/TreeViewItem.razor.cs b/Server/Components/TreeView/TreeViewItem.razor.cs index 7eb1462ef..35d77583b 100644 --- a/Server/Components/TreeView/TreeViewItem.razor.cs +++ b/Server/Components/TreeView/TreeViewItem.razor.cs @@ -1,8 +1,4 @@ using Microsoft.AspNetCore.Components; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace Remotely.Server.Components.TreeView; diff --git a/Server/Converters/PostgresDateTimeOffsetConverter.cs b/Server/Converters/PostgresDateTimeOffsetConverter.cs index 64154b797..1fa0c7688 100644 --- a/Server/Converters/PostgresDateTimeOffsetConverter.cs +++ b/Server/Converters/PostgresDateTimeOffsetConverter.cs @@ -1,6 +1,4 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using System; -using System.Globalization; using System.Linq.Expressions; namespace Remotely.Server.Converters; diff --git a/Server/Data/AppDbFactory.cs b/Server/Data/AppDbFactory.cs index f4de4dfd4..fe20edbae 100644 --- a/Server/Data/AppDbFactory.cs +++ b/Server/Data/AppDbFactory.cs @@ -1,9 +1,4 @@ -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; -using Remotely.Server.Services; -using System; - -namespace Remotely.Server.Data; +namespace Remotely.Server.Data; public interface IAppDbFactory { diff --git a/Server/Data/DesignTimeContexts.cs b/Server/Data/DesignTimeContexts.cs index c59a7d593..2e0f7fe0b 100644 --- a/Server/Data/DesignTimeContexts.cs +++ b/Server/Data/DesignTimeContexts.cs @@ -1,5 +1,4 @@ using Microsoft.EntityFrameworkCore.Design; -using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.FileProviders; namespace Remotely.Server.Data; diff --git a/Server/Data/PostgreSqlDbContext.cs b/Server/Data/PostgreSqlDbContext.cs index f602b88a0..f2339b714 100644 --- a/Server/Data/PostgreSqlDbContext.cs +++ b/Server/Data/PostgreSqlDbContext.cs @@ -1,13 +1,5 @@ -using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.Identity.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Diagnostics; -using Microsoft.Extensions.Configuration; +using Microsoft.EntityFrameworkCore; using Npgsql; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace Remotely.Server.Data; diff --git a/Server/Data/SqlServerDbContext.cs b/Server/Data/SqlServerDbContext.cs index 421453d72..dfd2d7e7f 100644 --- a/Server/Data/SqlServerDbContext.cs +++ b/Server/Data/SqlServerDbContext.cs @@ -1,12 +1,4 @@ -using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.Identity.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Diagnostics; -using Microsoft.Extensions.Configuration; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; +using Microsoft.EntityFrameworkCore; namespace Remotely.Server.Data; diff --git a/Server/Data/TestingDbContext.cs b/Server/Data/TestingDbContext.cs index 593642f11..456e495a3 100644 --- a/Server/Data/TestingDbContext.cs +++ b/Server/Data/TestingDbContext.cs @@ -1,12 +1,4 @@ -using Microsoft.AspNetCore.Hosting; -using Microsoft.EntityFrameworkCore; -using Microsoft.Extensions.Configuration; -using Remotely.Server.Data; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using Microsoft.EntityFrameworkCore; namespace Remotely.Server.Data; diff --git a/Server/Enums/DeviceCardState.cs b/Server/Enums/DeviceCardState.cs index 70700ee0b..06be23d74 100644 --- a/Server/Enums/DeviceCardState.cs +++ b/Server/Enums/DeviceCardState.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - -namespace Remotely.Server.Enums; +namespace Remotely.Server.Enums; public enum DeviceCardState { diff --git a/Server/Extensions/IApplicationBuilderExtensions.cs b/Server/Extensions/IApplicationBuilderExtensions.cs index ee34568e3..fe3d9e79c 100644 --- a/Server/Extensions/IApplicationBuilderExtensions.cs +++ b/Server/Extensions/IApplicationBuilderExtensions.cs @@ -1,7 +1,4 @@ -using Remotely.Server.Hubs; -using Microsoft.AspNetCore.Builder; - -namespace Remotely.Server.Extensions; +namespace Remotely.Server.Extensions; public static class IApplicationBuilderExtensions { diff --git a/Server/Extensions/IHeaderDictionaryExtensions.cs b/Server/Extensions/IHeaderDictionaryExtensions.cs index e1900627d..c568560c1 100644 --- a/Server/Extensions/IHeaderDictionaryExtensions.cs +++ b/Server/Extensions/IHeaderDictionaryExtensions.cs @@ -1,5 +1,4 @@ -using Microsoft.AspNetCore.Http; -using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.CodeAnalysis; using Remotely.Server.Auth; namespace Remotely.Server.Extensions; diff --git a/Server/Extensions/IQueryableExtensions.cs b/Server/Extensions/IQueryableExtensions.cs index 75754aceb..3f76ce745 100644 --- a/Server/Extensions/IQueryableExtensions.cs +++ b/Server/Extensions/IQueryableExtensions.cs @@ -1,7 +1,4 @@ -using System; -using System.Linq; - -namespace Remotely.Server.Extensions; +namespace Remotely.Server.Extensions; public static class IQueryableExtensions { diff --git a/Server/Hubs/AgentHub.cs b/Server/Hubs/AgentHub.cs index b408b27a1..b6650f362 100644 --- a/Server/Hubs/AgentHub.cs +++ b/Server/Hubs/AgentHub.cs @@ -2,7 +2,6 @@ using Bitbound.SimpleMessenger; using Microsoft.AspNetCore.SignalR; using Microsoft.Extensions.Caching.Memory; -using Remotely.Server.Models; using Remotely.Server.Models.Messages; using Remotely.Shared; using Remotely.Shared.Dtos; diff --git a/Server/Migrations/PostgreSql/20201005051254_Initial.cs b/Server/Migrations/PostgreSql/20201005051254_Initial.cs index e3738b0ac..73197254e 100644 --- a/Server/Migrations/PostgreSql/20201005051254_Initial.cs +++ b/Server/Migrations/PostgreSql/20201005051254_Initial.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace Remotely.Server.Migrations.PostgreSql; diff --git a/Server/Migrations/PostgreSql/20210206232836_Branding Info.cs b/Server/Migrations/PostgreSql/20210206232836_Branding Info.cs index dd9f7abf4..5a800825d 100644 --- a/Server/Migrations/PostgreSql/20210206232836_Branding Info.cs +++ b/Server/Migrations/PostgreSql/20210206232836_Branding Info.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; namespace Remotely.Server.Migrations.PostgreSql; diff --git a/Server/Migrations/PostgreSql/20210408133040_Add ScriptSchedules.cs b/Server/Migrations/PostgreSql/20210408133040_Add ScriptSchedules.cs index f308db7cd..944795be3 100644 --- a/Server/Migrations/PostgreSql/20210408133040_Add ScriptSchedules.cs +++ b/Server/Migrations/PostgreSql/20210408133040_Add ScriptSchedules.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace Remotely.Server.Migrations.PostgreSql; diff --git a/Server/Migrations/PostgreSql/20220917171937_Branding fix.cs b/Server/Migrations/PostgreSql/20220917171937_Branding fix.cs index 32362ab9e..a3d53ea52 100644 --- a/Server/Migrations/PostgreSql/20220917171937_Branding fix.cs +++ b/Server/Migrations/PostgreSql/20220917171937_Branding fix.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable diff --git a/Server/Migrations/PostgreSql/20230523215805_Replace DbLogger with Serilog.cs b/Server/Migrations/PostgreSql/20230523215805_Replace DbLogger with Serilog.cs index d0d04a484..d7d5be3a1 100644 --- a/Server/Migrations/PostgreSql/20230523215805_Replace DbLogger with Serilog.cs +++ b/Server/Migrations/PostgreSql/20230523215805_Replace DbLogger with Serilog.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable diff --git a/Server/Migrations/PostgreSql/20240221010243_Add_KeyValueRecords.cs b/Server/Migrations/PostgreSql/20240221010243_Add_KeyValueRecords.cs index 294a6755e..6aff33a98 100644 --- a/Server/Migrations/PostgreSql/20240221010243_Add_KeyValueRecords.cs +++ b/Server/Migrations/PostgreSql/20240221010243_Add_KeyValueRecords.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable diff --git a/Server/Migrations/SqlServer/20201002214839_InitialCreate.cs b/Server/Migrations/SqlServer/20201002214839_InitialCreate.cs index 1f9326730..88d9cd853 100644 --- a/Server/Migrations/SqlServer/20201002214839_InitialCreate.cs +++ b/Server/Migrations/SqlServer/20201002214839_InitialCreate.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace Remotely.Server.Migrations.SqlServer; diff --git a/Server/Migrations/SqlServer/20210206232822_Branding Info.cs b/Server/Migrations/SqlServer/20210206232822_Branding Info.cs index de12df14a..c6205942c 100644 --- a/Server/Migrations/SqlServer/20210206232822_Branding Info.cs +++ b/Server/Migrations/SqlServer/20210206232822_Branding Info.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; namespace Remotely.Server.Migrations.SqlServer; diff --git a/Server/Migrations/SqlServer/20210408133030_Add ScriptSchedules.cs b/Server/Migrations/SqlServer/20210408133030_Add ScriptSchedules.cs index def96e603..7f954d990 100644 --- a/Server/Migrations/SqlServer/20210408133030_Add ScriptSchedules.cs +++ b/Server/Migrations/SqlServer/20210408133030_Add ScriptSchedules.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; namespace Remotely.Server.Migrations.SqlServer; diff --git a/Server/Migrations/SqlServer/20220917171927_Branding fix.cs b/Server/Migrations/SqlServer/20220917171927_Branding fix.cs index f7e12a0ad..c05a193cf 100644 --- a/Server/Migrations/SqlServer/20220917171927_Branding fix.cs +++ b/Server/Migrations/SqlServer/20220917171927_Branding fix.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable diff --git a/Server/Migrations/SqlServer/20230523215756_Replace DbLogger with Serilog.cs b/Server/Migrations/SqlServer/20230523215756_Replace DbLogger with Serilog.cs index af7301f1a..c187d668d 100644 --- a/Server/Migrations/SqlServer/20230523215756_Replace DbLogger with Serilog.cs +++ b/Server/Migrations/SqlServer/20230523215756_Replace DbLogger with Serilog.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable diff --git a/Server/Migrations/SqlServer/20240221010103_Add_KeyValueRecords.cs b/Server/Migrations/SqlServer/20240221010103_Add_KeyValueRecords.cs index c6ac3e0a8..46a777718 100644 --- a/Server/Migrations/SqlServer/20240221010103_Add_KeyValueRecords.cs +++ b/Server/Migrations/SqlServer/20240221010103_Add_KeyValueRecords.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable diff --git a/Server/Migrations/Sqlite/20210206232808_Branding Info.cs b/Server/Migrations/Sqlite/20210206232808_Branding Info.cs index 24a2adec9..84b4718fc 100644 --- a/Server/Migrations/Sqlite/20210206232808_Branding Info.cs +++ b/Server/Migrations/Sqlite/20210206232808_Branding Info.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; namespace Remotely.Server.Migrations.Sqlite; diff --git a/Server/Migrations/Sqlite/20210408133020_Add ScriptSchedules.cs b/Server/Migrations/Sqlite/20210408133020_Add ScriptSchedules.cs index 148092d13..7935b9f34 100644 --- a/Server/Migrations/Sqlite/20210408133020_Add ScriptSchedules.cs +++ b/Server/Migrations/Sqlite/20210408133020_Add ScriptSchedules.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; namespace Remotely.Server.Migrations.Sqlite; diff --git a/Server/Migrations/Sqlite/20220917171918_Branding fix.cs b/Server/Migrations/Sqlite/20220917171918_Branding fix.cs index 5d30ab5d6..89fd4031a 100644 --- a/Server/Migrations/Sqlite/20220917171918_Branding fix.cs +++ b/Server/Migrations/Sqlite/20220917171918_Branding fix.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable diff --git a/Server/Migrations/Sqlite/20240221010154_Add_KeyValueRecords.cs b/Server/Migrations/Sqlite/20240221010154_Add_KeyValueRecords.cs index c6c5dd8cb..1403d7572 100644 --- a/Server/Migrations/Sqlite/20240221010154_Add_KeyValueRecords.cs +++ b/Server/Migrations/Sqlite/20240221010154_Add_KeyValueRecords.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable diff --git a/Server/Models/ColorPickerModel.cs b/Server/Models/ColorPickerModel.cs index e97907320..ff5172815 100644 --- a/Server/Models/ColorPickerModel.cs +++ b/Server/Models/ColorPickerModel.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Threading.Tasks; +using System.ComponentModel; namespace Remotely.Server.Models; diff --git a/Server/Models/ModalButton.cs b/Server/Models/ModalButton.cs index 88ff556c3..beaf424ad 100644 --- a/Server/Models/ModalButton.cs +++ b/Server/Models/ModalButton.cs @@ -1,6 +1,4 @@ -using System; - -namespace Remotely.Server.Models; +namespace Remotely.Server.Models; public class ModalButton { diff --git a/Server/Models/Toast.cs b/Server/Models/Toast.cs index 23268922f..6f9a7949c 100644 --- a/Server/Models/Toast.cs +++ b/Server/Models/Toast.cs @@ -1,6 +1,4 @@ -using System; - -namespace Remotely.Server.Models; +namespace Remotely.Server.Models; public class Toast { diff --git a/Server/Pages/Viewer.cshtml b/Server/Pages/Viewer.cshtml index be5a3ae3b..1c175f6af 100644 --- a/Server/Pages/Viewer.cshtml +++ b/Server/Pages/Viewer.cshtml @@ -1,5 +1,6 @@ @page -@model Remotely.Server.Areas.RemoteControl.Pages.ViewerModel +@using Remotely.Server.Pages +@model ViewerModel @{ Layout = null; diff --git a/Server/Pages/Viewer.cshtml.cs b/Server/Pages/Viewer.cshtml.cs index f7c1c71af..ffbaf09f1 100644 --- a/Server/Pages/Viewer.cshtml.cs +++ b/Server/Pages/Viewer.cshtml.cs @@ -4,7 +4,7 @@ using Microsoft.AspNetCore.Mvc.RazorPages; using Remotely.Server.Services; -namespace Remotely.Server.Areas.RemoteControl.Pages; +namespace Remotely.Server.Pages; [ServiceFilter(typeof(ViewerAuthorizationFilter))] public class ViewerModel(IDataService _dataService) : PageModel diff --git a/Server/Program.cs b/Server/Program.cs index 9540fa93c..6f7bdc17d 100644 --- a/Server/Program.cs +++ b/Server/Program.cs @@ -24,7 +24,6 @@ using System.Net; using RatePolicyNames = Remotely.Server.RateLimiting.PolicyNames; using Remotely.Server.Filters; -using static Org.BouncyCastle.Math.EC.ECCurve; var builder = WebApplication.CreateBuilder(args); var configuration = builder.Configuration; diff --git a/Server/Services/AgentHubSessionCache.cs b/Server/Services/AgentHubSessionCache.cs index 86023c802..9adb3454f 100644 --- a/Server/Services/AgentHubSessionCache.cs +++ b/Server/Services/AgentHubSessionCache.cs @@ -1,9 +1,6 @@ -using Remotely.Server.Models; -using Remotely.Shared.Entities; +using Remotely.Shared.Entities; using System.Collections.Concurrent; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.Linq; namespace Remotely.Server.Services; diff --git a/Server/Services/AuthService.cs b/Server/Services/AuthService.cs index 87c0ab97c..231b11914 100644 --- a/Server/Services/AuthService.cs +++ b/Server/Services/AuthService.cs @@ -1,13 +1,5 @@ using Microsoft.AspNetCore.Components.Authorization; -using Microsoft.AspNetCore.Identity; using Remotely.Shared.Entities; -using Remotely.Shared.Primitives; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Security.Claims; -using System.Security.Principal; -using System.Threading.Tasks; namespace Remotely.Server.Services; diff --git a/Server/Services/CircuitManager.cs b/Server/Services/CircuitManager.cs index 2ff26bff3..7b6f51340 100644 --- a/Server/Services/CircuitManager.cs +++ b/Server/Services/CircuitManager.cs @@ -1,12 +1,6 @@ -using Microsoft.Extensions.Logging; -using Remotely.Server.Hubs; -using Remotely.Server.Models; -using System; +using Remotely.Server.Hubs; using System.Collections.Concurrent; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Threading.Tasks; namespace Remotely.Server.Services; diff --git a/Server/Services/DataCleanupService.cs b/Server/Services/DataCleanupService.cs index 4c951adf7..3b805767b 100644 --- a/Server/Services/DataCleanupService.cs +++ b/Server/Services/DataCleanupService.cs @@ -1,15 +1,4 @@ using Remotely.Shared.Services; -using Microsoft.Build.Framework; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; -using Microsoft.Identity.Client; -using System; -using System.IO; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; -using System.Timers; namespace Remotely.Server.Services; diff --git a/Server/Services/DesktopStreamCache.cs b/Server/Services/DesktopStreamCache.cs index 00c6e015d..47021eddc 100644 --- a/Server/Services/DesktopStreamCache.cs +++ b/Server/Services/DesktopStreamCache.cs @@ -1,6 +1,4 @@ using Remotely.Server.Models; -using Remotely.Shared; -using Microsoft.Extensions.Logging; using System.Collections.Concurrent; using System.Diagnostics.CodeAnalysis; diff --git a/Server/Services/ExpiringTokenService.cs b/Server/Services/ExpiringTokenService.cs index 75664e619..22d229f57 100644 --- a/Server/Services/ExpiringTokenService.cs +++ b/Server/Services/ExpiringTokenService.cs @@ -1,10 +1,5 @@ using Remotely.Shared.Helpers; using Microsoft.Extensions.Caching.Memory; -using Remotely.Shared.Utilities; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; namespace Remotely.Server.Services; diff --git a/Server/Services/JsInterop.cs b/Server/Services/JsInterop.cs index be63cecd3..3c94149f8 100644 --- a/Server/Services/JsInterop.cs +++ b/Server/Services/JsInterop.cs @@ -1,6 +1,5 @@ using Microsoft.AspNetCore.Components; using Microsoft.JSInterop; -using System.Threading.Tasks; namespace Remotely.Server.Services; diff --git a/Server/Services/LoaderService.cs b/Server/Services/LoaderService.cs index 3964557df..7f03329ee 100644 --- a/Server/Services/LoaderService.cs +++ b/Server/Services/LoaderService.cs @@ -1,5 +1,4 @@ -using Remotely.Shared.Primitives; -using Bitbound.SimpleMessenger; +using Bitbound.SimpleMessenger; using Remotely.Server.Hubs; using Remotely.Server.Models.Messages; diff --git a/Server/Services/LogsManager.cs b/Server/Services/LogsManager.cs index c26024350..098dae9bc 100644 --- a/Server/Services/LogsManager.cs +++ b/Server/Services/LogsManager.cs @@ -1,18 +1,8 @@ -using Remotely.Shared.Services; -using Microsoft.Extensions.Logging; -using Remotely.Shared.Extensions; -using Serilog; -using System; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Collections.Immutable; +using Remotely.Shared.Extensions; using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; -using System.IO; using System.IO.Compression; -using System.Linq; using System.Text; -using System.Threading.Tasks; namespace Remotely.Server.Services; diff --git a/Server/Services/ModalService.cs b/Server/Services/ModalService.cs index b6d297c9a..6370884fb 100644 --- a/Server/Services/ModalService.cs +++ b/Server/Services/ModalService.cs @@ -1,9 +1,5 @@ using Microsoft.AspNetCore.Components; using Remotely.Server.Models; -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; namespace Remotely.Server.Services; diff --git a/Server/Services/OtpProvider.cs b/Server/Services/OtpProvider.cs index de58c5c0a..8c9fb3361 100644 --- a/Server/Services/OtpProvider.cs +++ b/Server/Services/OtpProvider.cs @@ -1,7 +1,5 @@ using Remotely.Shared.Helpers; using Microsoft.Extensions.Caching.Memory; -using Remotely.Shared.Utilities; -using System; namespace Remotely.Server.Services; diff --git a/Server/Services/PascalCasePolicy.cs b/Server/Services/PascalCasePolicy.cs index 05c08c083..83d6e04f9 100644 --- a/Server/Services/PascalCasePolicy.cs +++ b/Server/Services/PascalCasePolicy.cs @@ -1,5 +1,4 @@ -using System.Linq; -using System.Text.Json; +using System.Text.Json; namespace Remotely.Server.Services; diff --git a/Server/Services/RemoteControlSessionCleaner.cs b/Server/Services/RemoteControlSessionCleaner.cs index 3f80826fe..bbc3fdb80 100644 --- a/Server/Services/RemoteControlSessionCleaner.cs +++ b/Server/Services/RemoteControlSessionCleaner.cs @@ -1,6 +1,3 @@ -using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; - namespace Remotely.Server.Services; public class RemoteControlSessionCleaner : BackgroundService diff --git a/Server/Services/ScriptScheduler.cs b/Server/Services/ScriptScheduler.cs index 9b5d0fc94..5bc90566e 100644 --- a/Server/Services/ScriptScheduler.cs +++ b/Server/Services/ScriptScheduler.cs @@ -1,15 +1,4 @@ -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; -using Remotely.Server.Hubs; -using Remotely.Shared.Enums; -using Remotely.Shared.Models; -using Remotely.Shared.Utilities; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; +using Remotely.Shared.Utilities; namespace Remotely.Server.Services; diff --git a/Server/Services/Stores/ChatSessionStore.cs b/Server/Services/Stores/ChatSessionStore.cs index 5ccd23f9a..232e9dc96 100644 --- a/Server/Services/Stores/ChatSessionStore.cs +++ b/Server/Services/Stores/ChatSessionStore.cs @@ -1,8 +1,5 @@ using Remotely.Shared.ViewModels; -using System; -using System.Collections; using System.Collections.Concurrent; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; namespace Remotely.Server.Services.Stores; diff --git a/Server/Services/Stores/SelectedCardsStore.cs b/Server/Services/Stores/SelectedCardsStore.cs index 323121b69..465002cdc 100644 --- a/Server/Services/Stores/SelectedCardsStore.cs +++ b/Server/Services/Stores/SelectedCardsStore.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Remotely.Server.Services.Stores; +namespace Remotely.Server.Services.Stores; public interface ISelectedCardsStore { diff --git a/Server/Services/Stores/TerminalStore.cs b/Server/Services/Stores/TerminalStore.cs index c00b67d93..aa611c8b2 100644 --- a/Server/Services/Stores/TerminalStore.cs +++ b/Server/Services/Stores/TerminalStore.cs @@ -1,7 +1,5 @@ using Remotely.Shared.ViewModels; -using System; using System.Collections.Concurrent; -using System.Linq; namespace Remotely.Server.Services.Stores; diff --git a/Server/Services/ThemeProvider.cs b/Server/Services/ThemeProvider.cs index c58c2df55..166725f22 100644 --- a/Server/Services/ThemeProvider.cs +++ b/Server/Services/ThemeProvider.cs @@ -1,6 +1,4 @@ -using Microsoft.Identity.Client; -using Remotely.Shared.Enums; -using System.Threading.Tasks; +using Remotely.Shared.Enums; namespace Remotely.Server.Services; diff --git a/Server/Services/ToastService.cs b/Server/Services/ToastService.cs index 54cab390f..8f0d799af 100644 --- a/Server/Services/ToastService.cs +++ b/Server/Services/ToastService.cs @@ -1,11 +1,5 @@ using Remotely.Server.Enums; using Remotely.Server.Models; -using System; -using System.Collections; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Linq; -using System.Timers; namespace Remotely.Server.Services; diff --git a/Server/Services/UpgradeService.cs b/Server/Services/UpgradeService.cs index 81eb2747e..896fe23ac 100644 --- a/Server/Services/UpgradeService.cs +++ b/Server/Services/UpgradeService.cs @@ -1,14 +1,4 @@ -using Microsoft.Extensions.Logging; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Net.Http; -using System.Net.Http.Json; -using System.Text.Json; -using System.Threading.Tasks; - -namespace Remotely.Server.Services; +namespace Remotely.Server.Services; public interface IUpgradeService { diff --git a/Shared/AppConstants.cs b/Shared/AppConstants.cs index c87f9b9f6..83ad655a8 100644 --- a/Shared/AppConstants.cs +++ b/Shared/AppConstants.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Remotely.Shared; +namespace Remotely.Shared; public class AppConstants { diff --git a/Shared/Attributes/SortableAttribute.cs b/Shared/Attributes/SortableAttribute.cs index f1fd4a8ea..3f2ceb59f 100644 --- a/Shared/Attributes/SortableAttribute.cs +++ b/Shared/Attributes/SortableAttribute.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - -namespace Remotely.Shared.Attributes; +namespace Remotely.Shared.Attributes; [AttributeUsage(AttributeTargets.Property)] public class SortableAttribute : Attribute diff --git a/Shared/DtoEntityBases/ScriptResultBase.cs b/Shared/DtoEntityBases/ScriptResultBase.cs index a277c4dad..9f413b509 100644 --- a/Shared/DtoEntityBases/ScriptResultBase.cs +++ b/Shared/DtoEntityBases/ScriptResultBase.cs @@ -1,7 +1,5 @@ using Remotely.Shared.Enums; -using Remotely.Shared.Models; using Remotely.Shared.Utilities; -using System; using System.Text.Json.Serialization; namespace Remotely.Shared.DtoEntityBases; diff --git a/Shared/Dtos/DeviceClientDto.cs b/Shared/Dtos/DeviceClientDto.cs index b8b89e02b..21a45de63 100644 --- a/Shared/Dtos/DeviceClientDto.cs +++ b/Shared/Dtos/DeviceClientDto.cs @@ -1,12 +1,6 @@ using Remotely.Shared.Models; -using System; -using System.Collections.Generic; -using System.Linq; using System.Runtime.InteropServices; using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Threading.Tasks; namespace Remotely.Shared.Dtos; diff --git a/Shared/Dtos/ScriptResultDto.cs b/Shared/Dtos/ScriptResultDto.cs index 75162b52a..e8ca24bc2 100644 --- a/Shared/Dtos/ScriptResultDto.cs +++ b/Shared/Dtos/ScriptResultDto.cs @@ -1,9 +1,4 @@ using Remotely.Shared.DtoEntityBases; -using Remotely.Shared.Enums; -using Remotely.Shared.Models; -using Remotely.Shared.Utilities; -using System; -using System.Text.Json.Serialization; namespace Remotely.Shared.Dtos; diff --git a/Shared/Dtos/ScriptResultResponse.cs b/Shared/Dtos/ScriptResultResponse.cs index 417db7014..37a3fe7e9 100644 --- a/Shared/Dtos/ScriptResultResponse.cs +++ b/Shared/Dtos/ScriptResultResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Remotely.Shared.Dtos; +namespace Remotely.Shared.Dtos; public class ScriptResultResponse { public required string Id { get; init; } diff --git a/Shared/Entities/Alert.cs b/Shared/Entities/Alert.cs index 2f8a1b414..be303e7da 100644 --- a/Shared/Entities/Alert.cs +++ b/Shared/Entities/Alert.cs @@ -1,5 +1,4 @@ -using System; -using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text.Json.Serialization; diff --git a/Shared/Entities/ApiToken.cs b/Shared/Entities/ApiToken.cs index c37b58e68..b6f99805c 100644 --- a/Shared/Entities/ApiToken.cs +++ b/Shared/Entities/ApiToken.cs @@ -1,5 +1,4 @@ -using System; -using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text.Json.Serialization; diff --git a/Shared/Entities/BrandingInfo.cs b/Shared/Entities/BrandingInfo.cs index 54381aae4..f4fe5c9a2 100644 --- a/Shared/Entities/BrandingInfo.cs +++ b/Shared/Entities/BrandingInfo.cs @@ -1,13 +1,7 @@ #nullable enable -using Remotely.Shared.Models; -using System; -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Text; using System.Text.Json.Serialization; -using System.Threading.Tasks; namespace Remotely.Shared.Entities; diff --git a/Shared/Entities/Device.cs b/Shared/Entities/Device.cs index b77533d42..0088c520b 100644 --- a/Shared/Entities/Device.cs +++ b/Shared/Entities/Device.cs @@ -1,10 +1,6 @@ using Remotely.Shared.Attributes; -using Remotely.Shared.Enums; using Remotely.Shared.Models; -using System; -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; using System.Runtime.InteropServices; using System.Text.Json.Serialization; diff --git a/Shared/Entities/DeviceGroup.cs b/Shared/Entities/DeviceGroup.cs index 93ec714bd..532658d73 100644 --- a/Shared/Entities/DeviceGroup.cs +++ b/Shared/Entities/DeviceGroup.cs @@ -1,6 +1,4 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text.Json.Serialization; diff --git a/Shared/Entities/InviteLink.cs b/Shared/Entities/InviteLink.cs index 12324acf3..daa0d2a6a 100644 --- a/Shared/Entities/InviteLink.cs +++ b/Shared/Entities/InviteLink.cs @@ -1,5 +1,4 @@ -using System; -using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text.Json.Serialization; diff --git a/Shared/Entities/KeyValueRecord.cs b/Shared/Entities/KeyValueRecord.cs index 8c261f10a..0210e9ce6 100644 --- a/Shared/Entities/KeyValueRecord.cs +++ b/Shared/Entities/KeyValueRecord.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.ComponentModel.DataAnnotations; namespace Remotely.Shared.Entities; diff --git a/Shared/Entities/Organization.cs b/Shared/Entities/Organization.cs index 13b01f492..38c30b1b4 100644 --- a/Shared/Entities/Organization.cs +++ b/Shared/Entities/Organization.cs @@ -1,7 +1,4 @@ -using Remotely.Shared.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Remotely.Shared.Entities; diff --git a/Shared/Entities/RemotelyUser.cs b/Shared/Entities/RemotelyUser.cs index 62c1c2902..d1e8703c8 100644 --- a/Shared/Entities/RemotelyUser.cs +++ b/Shared/Entities/RemotelyUser.cs @@ -1,7 +1,5 @@ using Microsoft.AspNetCore.Identity; using Remotely.Shared.Models; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; using System.Text.Json.Serialization; namespace Remotely.Shared.Entities; diff --git a/Shared/Entities/SavedScript.cs b/Shared/Entities/SavedScript.cs index 7b4b5a7bc..c38b77f94 100644 --- a/Shared/Entities/SavedScript.cs +++ b/Shared/Entities/SavedScript.cs @@ -1,12 +1,7 @@ using Remotely.Shared.Enums; -using System; -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Text; using System.Text.Json.Serialization; -using System.Threading.Tasks; namespace Remotely.Shared.Entities; diff --git a/Shared/Entities/ScriptResult.cs b/Shared/Entities/ScriptResult.cs index 0dd8a7402..26e2eb7bb 100644 --- a/Shared/Entities/ScriptResult.cs +++ b/Shared/Entities/ScriptResult.cs @@ -1,8 +1,4 @@ using Remotely.Shared.DtoEntityBases; -using Remotely.Shared.Enums; -using Remotely.Shared.Utilities; -using System; -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Runtime.Serialization; diff --git a/Shared/Entities/ScriptRun.cs b/Shared/Entities/ScriptRun.cs index 9889a63b5..4bebe9c64 100644 --- a/Shared/Entities/ScriptRun.cs +++ b/Shared/Entities/ScriptRun.cs @@ -1,12 +1,6 @@ using Remotely.Shared.Enums; -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Text; using System.Text.Json.Serialization; -using System.Threading.Tasks; namespace Remotely.Shared.Entities; diff --git a/Shared/Entities/ScriptSchedule.cs b/Shared/Entities/ScriptSchedule.cs index 76277947c..011fddedd 100644 --- a/Shared/Entities/ScriptSchedule.cs +++ b/Shared/Entities/ScriptSchedule.cs @@ -1,13 +1,6 @@ using Remotely.Shared.Enums; -using Remotely.Shared.Utilities; -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Text; using System.Text.Json.Serialization; -using System.Threading.Tasks; namespace Remotely.Shared.Entities; diff --git a/Shared/Entities/SharedFile.cs b/Shared/Entities/SharedFile.cs index ec69176e4..6140703df 100644 --- a/Shared/Entities/SharedFile.cs +++ b/Shared/Entities/SharedFile.cs @@ -1,5 +1,4 @@ -using System; -using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Remotely.Shared.Entities; diff --git a/Shared/Enums/ChatHistoryItemOrigin.cs b/Shared/Enums/ChatHistoryItemOrigin.cs index 0ae8b9ef1..a3b839889 100644 --- a/Shared/Enums/ChatHistoryItemOrigin.cs +++ b/Shared/Enums/ChatHistoryItemOrigin.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - -namespace Remotely.Shared.Enums; +namespace Remotely.Shared.Enums; public enum ChatHistoryItemOrigin { diff --git a/Shared/Enums/CompletionIntent.cs b/Shared/Enums/CompletionIntent.cs index 2aff59735..ca93d2f18 100644 --- a/Shared/Enums/CompletionIntent.cs +++ b/Shared/Enums/CompletionIntent.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Remotely.Shared.Enums; +namespace Remotely.Shared.Enums; public enum CompletionIntent { diff --git a/Shared/Enums/DbProvider.cs b/Shared/Enums/DbProvider.cs index 6d694193b..8d625feff 100644 --- a/Shared/Enums/DbProvider.cs +++ b/Shared/Enums/DbProvider.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Remotely.Shared.Enums; +namespace Remotely.Shared.Enums; public enum DbProvider diff --git a/Shared/Enums/RepeatInterval.cs b/Shared/Enums/RepeatInterval.cs index 91c3c5a21..5205c95a3 100644 --- a/Shared/Enums/RepeatInterval.cs +++ b/Shared/Enums/RepeatInterval.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Remotely.Shared.Enums; +namespace Remotely.Shared.Enums; public enum RepeatInterval { diff --git a/Shared/Enums/ScriptInputType.cs b/Shared/Enums/ScriptInputType.cs index bfa271cd9..51aa8dc79 100644 --- a/Shared/Enums/ScriptInputType.cs +++ b/Shared/Enums/ScriptInputType.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Remotely.Shared.Enums; +namespace Remotely.Shared.Enums; public enum ScriptInputType { diff --git a/Shared/Enums/ScriptingShell.cs b/Shared/Enums/ScriptingShell.cs index 2353248d8..238971639 100644 --- a/Shared/Enums/ScriptingShell.cs +++ b/Shared/Enums/ScriptingShell.cs @@ -1,11 +1,4 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Remotely.Shared.Enums; +namespace Remotely.Shared.Enums; public enum ScriptingShell { diff --git a/Shared/Extensions/DeviceExtensions.cs b/Shared/Extensions/DeviceExtensions.cs index 8997c1281..254f596de 100644 --- a/Shared/Extensions/DeviceExtensions.cs +++ b/Shared/Extensions/DeviceExtensions.cs @@ -1,12 +1,7 @@ using Remotely.Shared.Dtos; using Remotely.Shared.Entities; -using System; -using System.Collections.Generic; -using System.Linq; using System.Runtime.Serialization; -using System.Text; using System.Text.Json; -using System.Threading.Tasks; namespace Remotely.Shared.Extensions; diff --git a/Shared/Extensions/IEnumerableExtensions.cs b/Shared/Extensions/IEnumerableExtensions.cs index b105fddf5..f21c066e9 100644 --- a/Shared/Extensions/IEnumerableExtensions.cs +++ b/Shared/Extensions/IEnumerableExtensions.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Remotely.Shared.Extensions; +namespace Remotely.Shared.Extensions; public static class IEnumerableExtensions { diff --git a/Shared/Extensions/StreamExtensions.cs b/Shared/Extensions/StreamExtensions.cs index a05f5a490..a74da3d99 100644 --- a/Shared/Extensions/StreamExtensions.cs +++ b/Shared/Extensions/StreamExtensions.cs @@ -1,11 +1,4 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Remotely.Shared.Extensions; +namespace Remotely.Shared.Extensions; public static class StreamExtensions { diff --git a/Shared/Extensions/StringExtensions.cs b/Shared/Extensions/StringExtensions.cs index 2d5d7115b..5b8479310 100644 --- a/Shared/Extensions/StringExtensions.cs +++ b/Shared/Extensions/StringExtensions.cs @@ -1,11 +1,4 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Remotely.Shared.Extensions; +namespace Remotely.Shared.Extensions; public static class StringExtensions { diff --git a/Shared/Helpers/PathSanitizer.cs b/Shared/Helpers/PathSanitizer.cs index 7be80f297..9f7f37dd6 100644 --- a/Shared/Helpers/PathSanitizer.cs +++ b/Shared/Helpers/PathSanitizer.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Remotely.Shared.Helpers; +namespace Remotely.Shared.Helpers; public static class PathSanitizer { diff --git a/Shared/Interfaces/IAgentHubClient.cs b/Shared/Interfaces/IAgentHubClient.cs index 78c283bcf..73111a788 100644 --- a/Shared/Interfaces/IAgentHubClient.cs +++ b/Shared/Interfaces/IAgentHubClient.cs @@ -1,9 +1,4 @@ using Remotely.Shared.Enums; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Remotely.Shared.Interfaces; public interface IAgentHubClient diff --git a/Shared/Models/AlertOptions.cs b/Shared/Models/AlertOptions.cs index 25e2f54e3..92b14f392 100644 --- a/Shared/Models/AlertOptions.cs +++ b/Shared/Models/AlertOptions.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; - -namespace Remotely.Shared.Models; +namespace Remotely.Shared.Models; public class AlertOptions { diff --git a/Shared/Models/ConnectionInfo.cs b/Shared/Models/ConnectionInfo.cs index e5292b888..76fc86b05 100644 --- a/Shared/Models/ConnectionInfo.cs +++ b/Shared/Models/ConnectionInfo.cs @@ -1,6 +1,4 @@ #nullable enable -using System; - namespace Remotely.Shared.Models; public class ConnectionInfo diff --git a/Shared/Models/Drive.cs b/Shared/Models/Drive.cs index 0c5c787d2..e8fe50045 100644 --- a/Shared/Models/Drive.cs +++ b/Shared/Models/Drive.cs @@ -1,6 +1,4 @@ -using System.IO; - -namespace Remotely.Shared.Models; +namespace Remotely.Shared.Models; public class Drive { diff --git a/Shared/Models/Dtos/FrameReceivedDto.cs b/Shared/Models/Dtos/FrameReceivedDto.cs index de316642a..aab711488 100644 --- a/Shared/Models/Dtos/FrameReceivedDto.cs +++ b/Shared/Models/Dtos/FrameReceivedDto.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.Serialization; -using System.Text; -using System.Threading.Tasks; +using System.Runtime.Serialization; namespace Remotely.Shared.Models.Dtos; diff --git a/Shared/Models/Dtos/SessionMetricsDto.cs b/Shared/Models/Dtos/SessionMetricsDto.cs index 6deb0e178..f0e79fbb3 100644 --- a/Shared/Models/Dtos/SessionMetricsDto.cs +++ b/Shared/Models/Dtos/SessionMetricsDto.cs @@ -1,10 +1,5 @@ using MessagePack; -using System; -using System.Collections.Generic; -using System.Linq; using System.Runtime.Serialization; -using System.Text; -using System.Threading.Tasks; namespace Remotely.Shared.Models.Dtos; diff --git a/Shared/Models/EmbeddedServerData.cs b/Shared/Models/EmbeddedServerData.cs index e170cac4c..92dd2e22d 100644 --- a/Shared/Models/EmbeddedServerData.cs +++ b/Shared/Models/EmbeddedServerData.cs @@ -1,11 +1,6 @@ using MessagePack; -using System; -using System.Collections.Generic; -using System.Linq; using System.Runtime.Serialization; -using System.Text; using System.Text.Json.Serialization; -using System.Threading.Tasks; namespace Remotely.Shared.Models; diff --git a/Shared/Models/PwshCommandCompletion.cs b/Shared/Models/PwshCommandCompletion.cs index 6c71fdaf2..6a81b7980 100644 --- a/Shared/Models/PwshCommandCompletion.cs +++ b/Shared/Models/PwshCommandCompletion.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Remotely.Shared.Models; +namespace Remotely.Shared.Models; public class PwshCommandCompletion { diff --git a/Shared/Models/RemoteControlAccessRequest.cs b/Shared/Models/RemoteControlAccessRequest.cs index 9dd404dc0..d923c4acf 100644 --- a/Shared/Models/RemoteControlAccessRequest.cs +++ b/Shared/Models/RemoteControlAccessRequest.cs @@ -1,11 +1,6 @@ using MessagePack; -using System; -using System.Collections.Generic; -using System.Linq; using System.Runtime.Serialization; -using System.Text; using System.Text.Json.Serialization; -using System.Threading.Tasks; namespace Remotely.Shared.Models; diff --git a/Shared/Models/RemoteControlViewerOptions.cs b/Shared/Models/RemoteControlViewerOptions.cs index 4b5f2e795..0e83423d3 100644 --- a/Shared/Models/RemoteControlViewerOptions.cs +++ b/Shared/Models/RemoteControlViewerOptions.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.Serialization; -using System.Text; -using System.Threading.Tasks; +using System.Runtime.Serialization; namespace Remotely.Shared.Models; diff --git a/Shared/Primitives/CallbackDisposable.cs b/Shared/Primitives/CallbackDisposable.cs index 3e286e6d9..d401d811e 100644 --- a/Shared/Primitives/CallbackDisposable.cs +++ b/Shared/Primitives/CallbackDisposable.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Remotely.Shared.Primitives; +namespace Remotely.Shared.Primitives; /// diff --git a/Shared/Primitives/CallbackDisposableAsync.cs b/Shared/Primitives/CallbackDisposableAsync.cs index fe01ca8f7..ed87b54ab 100644 --- a/Shared/Primitives/CallbackDisposableAsync.cs +++ b/Shared/Primitives/CallbackDisposableAsync.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Remotely.Shared.Primitives; +namespace Remotely.Shared.Primitives; /// diff --git a/Shared/Primitives/NoopDisposable.cs b/Shared/Primitives/NoopDisposable.cs index 9666addc4..3c251fbd8 100644 --- a/Shared/Primitives/NoopDisposable.cs +++ b/Shared/Primitives/NoopDisposable.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Remotely.Shared.Primitives; +namespace Remotely.Shared.Primitives; public class NoopDisposable : IDisposable { public void Dispose() diff --git a/Shared/Services/ElevationDetectorLinux.cs b/Shared/Services/ElevationDetectorLinux.cs index adcc77df1..626a91ac9 100644 --- a/Shared/Services/ElevationDetectorLinux.cs +++ b/Shared/Services/ElevationDetectorLinux.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.InteropServices; -using System.Text; -using System.Threading.Tasks; +using System.Runtime.InteropServices; namespace Remotely.Shared.Services; diff --git a/Shared/Services/ElevationDetectorWin.cs b/Shared/Services/ElevationDetectorWin.cs index b0b043e7c..e10406f3d 100644 --- a/Shared/Services/ElevationDetectorWin.cs +++ b/Shared/Services/ElevationDetectorWin.cs @@ -1,11 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using System.Runtime.Versioning; +using System.Runtime.Versioning; using System.Security.Principal; -using System.Text; -using System.Threading.Tasks; namespace Remotely.Shared.Services; diff --git a/Shared/Services/EmbeddedServerDataProvider.cs b/Shared/Services/EmbeddedServerDataProvider.cs index 6ed5bc5cb..e424fef76 100644 --- a/Shared/Services/EmbeddedServerDataProvider.cs +++ b/Shared/Services/EmbeddedServerDataProvider.cs @@ -1,11 +1,8 @@ #nullable enable -using Remotely.Shared; using MessagePack; using Remotely.Shared.Models; using Remotely.Shared.Primitives; -using System; -using System.IO; namespace Remotely.Shared.Services; diff --git a/Shared/Services/FileLogger.cs b/Shared/Services/FileLogger.cs index 4f4c10671..0269f1b89 100644 --- a/Shared/Services/FileLogger.cs +++ b/Shared/Services/FileLogger.cs @@ -2,12 +2,7 @@ using Microsoft.Extensions.Logging; using Remotely.Shared.Utilities; -using System; using System.Collections.Concurrent; -using System.IO; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; namespace Remotely.Shared.Services; diff --git a/Shared/Services/FileLoggerDefaults.cs b/Shared/Services/FileLoggerDefaults.cs index c16f70173..d3176dec3 100644 --- a/Shared/Services/FileLoggerDefaults.cs +++ b/Shared/Services/FileLoggerDefaults.cs @@ -1,12 +1,5 @@ using Remotely.Shared.Primitives; using Remotely.Shared.Utilities; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; namespace Remotely.Shared.Services; public static class FileLoggerDefaults diff --git a/Shared/Services/FileLoggerProvider.cs b/Shared/Services/FileLoggerProvider.cs index cf09a9a36..6d25c9e0a 100644 --- a/Shared/Services/FileLoggerProvider.cs +++ b/Shared/Services/FileLoggerProvider.cs @@ -1,5 +1,4 @@ using Microsoft.Extensions.Logging; -using System; namespace Remotely.Shared.Services; diff --git a/Shared/Services/IElevationDetector.cs b/Shared/Services/IElevationDetector.cs index 1392c5af3..6319b3a02 100644 --- a/Shared/Services/IElevationDetector.cs +++ b/Shared/Services/IElevationDetector.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Remotely.Shared.Services; +namespace Remotely.Shared.Services; public interface IElevationDetector { diff --git a/Shared/Services/ProcessInvoker.cs b/Shared/Services/ProcessInvoker.cs index 23e83d615..ea539602a 100644 --- a/Shared/Services/ProcessInvoker.cs +++ b/Shared/Services/ProcessInvoker.cs @@ -1,7 +1,5 @@ -using System; using System.Diagnostics; using Microsoft.Extensions.Logging; -using Remotely.Shared.Utilities; namespace Remotely.Shared.Services; diff --git a/Shared/Usings.cs b/Shared/Usings.cs index 7fd639a25..75a045634 100644 --- a/Shared/Usings.cs +++ b/Shared/Usings.cs @@ -2,6 +2,5 @@ global using System.Collections.Generic; global using System.IO; global using System.Linq; -global using System.Text; global using System.Threading; global using System.Threading.Tasks; \ No newline at end of file diff --git a/Shared/Utilities/AppVersionHelper.cs b/Shared/Utilities/AppVersionHelper.cs index 1ffb1c964..80da8ec01 100644 --- a/Shared/Utilities/AppVersionHelper.cs +++ b/Shared/Utilities/AppVersionHelper.cs @@ -1,11 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; +using System.Diagnostics; using System.Reflection; -using System.Text; -using System.Threading.Tasks; namespace Remotely.Shared.Utilities; diff --git a/Shared/Utilities/AppendableStream.cs b/Shared/Utilities/AppendableStream.cs index 8d5f68196..faeb6c511 100644 --- a/Shared/Utilities/AppendableStream.cs +++ b/Shared/Utilities/AppendableStream.cs @@ -1,12 +1,4 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; - -namespace Remotely.Shared.Utilities; +namespace Remotely.Shared.Utilities; public class AppendableStream : Stream { diff --git a/Shared/Utilities/ConsoleHelper.cs b/Shared/Utilities/ConsoleHelper.cs index ee7b8750b..af67d26a0 100644 --- a/Shared/Utilities/ConsoleHelper.cs +++ b/Shared/Utilities/ConsoleHelper.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.CompilerServices; -using System.Text; -using System.Threading.Tasks; +using System.Runtime.CompilerServices; namespace Remotely.Shared.Utilities; diff --git a/Shared/Utilities/Disposer.cs b/Shared/Utilities/Disposer.cs index 2f48fe27f..579c61e42 100644 --- a/Shared/Utilities/Disposer.cs +++ b/Shared/Utilities/Disposer.cs @@ -1,6 +1,4 @@ -using System; - -namespace Remotely.Shared.Utilities; +namespace Remotely.Shared.Utilities; public static class Disposer { diff --git a/Shared/Utilities/EnumMapper.cs b/Shared/Utilities/EnumMapper.cs index c82ac1219..477cf91fc 100644 --- a/Shared/Utilities/EnumMapper.cs +++ b/Shared/Utilities/EnumMapper.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Remotely.Shared.Utilities; +namespace Remotely.Shared.Utilities; public static class EnumMapper { diff --git a/Shared/Utilities/EnvironmentHelper.cs b/Shared/Utilities/EnvironmentHelper.cs index 1682c74d2..a2534c82e 100644 --- a/Shared/Utilities/EnvironmentHelper.cs +++ b/Shared/Utilities/EnvironmentHelper.cs @@ -1,6 +1,4 @@ using Remotely.Shared.Enums; -using System; -using System.Diagnostics; namespace Remotely.Shared.Utilities; diff --git a/Shared/Utilities/JsonSerializerHelper.cs b/Shared/Utilities/JsonSerializerHelper.cs index 4f8abc8e4..7047e7489 100644 --- a/Shared/Utilities/JsonSerializerHelper.cs +++ b/Shared/Utilities/JsonSerializerHelper.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Text.Json; -using System.Threading.Tasks; +using System.Text.Json; namespace Remotely.Shared.Utilities; diff --git a/Shared/Utilities/MathHelper.cs b/Shared/Utilities/MathHelper.cs index 416e30b1c..f15d188f9 100644 --- a/Shared/Utilities/MathHelper.cs +++ b/Shared/Utilities/MathHelper.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Remotely.Shared.Utilities; +namespace Remotely.Shared.Utilities; public static class MathHelper { diff --git a/Shared/Utilities/Time.cs b/Shared/Utilities/Time.cs index c358d5f46..9207a8111 100644 --- a/Shared/Utilities/Time.cs +++ b/Shared/Utilities/Time.cs @@ -1,12 +1,4 @@ -using Remotely.Shared.Enums; -using Remotely.Shared.Models; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Remotely.Shared.Utilities; +namespace Remotely.Shared.Utilities; // TODO: Replace with ISystemTime. public static class Time diff --git a/Shared/Utilities/TimeSpanJsonConverter.cs b/Shared/Utilities/TimeSpanJsonConverter.cs index 06879d47c..013dddc08 100644 --- a/Shared/Utilities/TimeSpanJsonConverter.cs +++ b/Shared/Utilities/TimeSpanJsonConverter.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Text.Json; +using System.Text.Json; using System.Text.Json.Serialization; -using System.Threading.Tasks; namespace Remotely.Shared.Utilities; diff --git a/Shared/ViewModels/ChatHistoryItem.cs b/Shared/ViewModels/ChatHistoryItem.cs index 9b5db9cc9..46ccc99f0 100644 --- a/Shared/ViewModels/ChatHistoryItem.cs +++ b/Shared/ViewModels/ChatHistoryItem.cs @@ -1,9 +1,4 @@ using Remotely.Shared.Enums; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Remotely.Shared.ViewModels; diff --git a/Shared/ViewModels/ChatSession.cs b/Shared/ViewModels/ChatSession.cs index db4992de0..40b5922e0 100644 --- a/Shared/ViewModels/ChatSession.cs +++ b/Shared/ViewModels/ChatSession.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Concurrent; +using System.Collections.Concurrent; namespace Remotely.Shared.ViewModels; diff --git a/Shared/ViewModels/InviteViewModel.cs b/Shared/ViewModels/InviteViewModel.cs index 96eef5b4f..602644249 100644 --- a/Shared/ViewModels/InviteViewModel.cs +++ b/Shared/ViewModels/InviteViewModel.cs @@ -1,5 +1,4 @@ -using System; -using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations; namespace Remotely.Shared.ViewModels; diff --git a/Shared/ViewModels/TerminalLineItem.cs b/Shared/ViewModels/TerminalLineItem.cs index bcef221da..65fab9368 100644 --- a/Shared/ViewModels/TerminalLineItem.cs +++ b/Shared/ViewModels/TerminalLineItem.cs @@ -1,11 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Dynamic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Remotely.Shared.ViewModels; +namespace Remotely.Shared.ViewModels; public class TerminalLineItem { diff --git a/Shared/ViewModels/ViewModelBase.cs b/Shared/ViewModels/ViewModelBase.cs index 530e95ba6..a2c9a3741 100644 --- a/Shared/ViewModels/ViewModelBase.cs +++ b/Shared/ViewModels/ViewModelBase.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; +using System.ComponentModel; using System.Runtime.CompilerServices; -using System.Text; -using System.Threading.Tasks; namespace Remotely.Shared.ViewModels; diff --git a/Tests/LoadTester/CommandLineParser.cs b/Tests/LoadTester/CommandLineParser.cs index 0cb914b29..a9e5a4007 100644 --- a/Tests/LoadTester/CommandLineParser.cs +++ b/Tests/LoadTester/CommandLineParser.cs @@ -2,7 +2,7 @@ using System.Linq; using System.Collections.Generic; -namespace Remotely.Tests.LoadTester; +namespace Remotely.LoadTester; public class CommandLineParser { diff --git a/Tests/LoadTester/Program.cs b/Tests/LoadTester/Program.cs index 00d078cdb..c90294b71 100644 --- a/Tests/LoadTester/Program.cs +++ b/Tests/LoadTester/Program.cs @@ -1,17 +1,14 @@ -using Castle.Core.Logging; -using Microsoft.AspNetCore.Http.Connections; -using Microsoft.AspNetCore.SignalR.Client; +using Microsoft.AspNetCore.SignalR.Client; using Microsoft.Extensions.Logging; using Moq; using Remotely.Agent.Services; using Remotely.Agent.Services.Windows; using System; -using System.Collections.Generic; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; -namespace Remotely.Tests.LoadTester; +namespace Remotely.LoadTester; internal class Program { diff --git a/Tests/Server.Tests/DataServiceTests.cs b/Tests/Server.Tests/DataServiceTests.cs index 72697b218..3c774743c 100644 --- a/Tests/Server.Tests/DataServiceTests.cs +++ b/Tests/Server.Tests/DataServiceTests.cs @@ -1,6 +1,5 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.VisualStudio.TestTools.UnitTesting; -using Moq; using Remotely.Server.Services; using Remotely.Shared.Dtos; using Remotely.Shared.Entities; @@ -8,7 +7,6 @@ using Remotely.Shared.Models; using Remotely.Shared.Utilities; using System; -using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; diff --git a/Tests/Server.Tests/IoCActivator.cs b/Tests/Server.Tests/IoCActivator.cs index d8e55e67b..75d761e3c 100644 --- a/Tests/Server.Tests/IoCActivator.cs +++ b/Tests/Server.Tests/IoCActivator.cs @@ -1,20 +1,13 @@ -using Microsoft.AspNetCore; -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Identity; -using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Primitives; using Microsoft.VisualStudio.TestTools.UnitTesting; -using Remotely.Server.API; using Remotely.Server.Data; using Remotely.Server.Services; using Remotely.Shared.Entities; -using Remotely.Shared.Utilities; using System; using System.Collections.Generic; -using System.Configuration; namespace Remotely.Server.Tests; diff --git a/Tests/Server.Tests/Mocks/HubContextFixture.cs b/Tests/Server.Tests/Mocks/HubContextFixture.cs index e71f816d4..7c7f6a6f2 100644 --- a/Tests/Server.Tests/Mocks/HubContextFixture.cs +++ b/Tests/Server.Tests/Mocks/HubContextFixture.cs @@ -1,11 +1,5 @@ using Microsoft.AspNetCore.SignalR; using Moq; -using Remotely.Server.Hubs; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Remotely.Server.Tests.Mocks;