Skip to content

Commit

Permalink
Apply folder and namespace fixes on solution.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Oct 21, 2024
1 parent bbddfbc commit 0f023d2
Show file tree
Hide file tree
Showing 236 changed files with 155 additions and 908 deletions.
4 changes: 0 additions & 4 deletions Agent/Extensions/PowerShellCompletionExtensions.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
1 change: 0 additions & 1 deletion Agent/Interfaces/IAppLauncher.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Microsoft.AspNetCore.SignalR.Client;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Remotely.Agent.Interfaces;
Expand Down
5 changes: 0 additions & 5 deletions Agent/Interfaces/IDeviceInformationService.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
8 changes: 1 addition & 7 deletions Agent/Interfaces/IScriptingShell.cs
Original file line number Diff line number Diff line change
@@ -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; }
Expand Down
3 changes: 1 addition & 2 deletions Agent/Interfaces/IUpdater.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Threading.Tasks;
using System.Threading.Tasks;

namespace Remotely.Agent.Interfaces;

Expand Down
4 changes: 2 additions & 2 deletions Agent/Services/AgentHubConnection.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;

Expand Down
1 change: 0 additions & 1 deletion Agent/Services/ChatClientService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion Agent/Services/CpuUtilizationSampler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

Expand Down
1 change: 0 additions & 1 deletion Agent/Services/DeviceInfoGeneratorBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion Agent/Services/ExternalScriptingShell.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 1 addition & 4 deletions Agent/Services/FileLogsManager.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
4 changes: 0 additions & 4 deletions Agent/Services/Linux/DeviceInfoGeneratorLinux.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 0 additions & 3 deletions Agent/Services/Linux/UpdaterLinux.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 0 additions & 1 deletion Agent/Services/MacOS/AppLauncherMac.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.AspNetCore.SignalR.Client;
using Remotely.Agent.Interfaces;
Expand Down
1 change: 0 additions & 1 deletion Agent/Services/MacOS/DeviceInfoGeneratorMac.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 0 additions & 3 deletions Agent/Services/MacOS/UpdaterMac.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 1 addition & 3 deletions Agent/Services/PsCoreShell.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 1 addition & 3 deletions Agent/Services/ScriptExecutor.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 1 addition & 2 deletions Agent/Services/Uninstaller.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Microsoft.Win32;
using Remotely.Shared.Utilities;
using Remotely.Shared.Utilities;
using System;
using System.Diagnostics;
using System.IO;
Expand Down
1 change: 0 additions & 1 deletion Agent/Services/UpdateDownloader.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;

Expand Down
2 changes: 0 additions & 2 deletions Agent/Services/WakeOnLanService.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 2 additions & 2 deletions Agent/Services/Windows/AppLauncherWin.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions Agent/Services/Windows/DeviceInfoGeneratorWin.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
3 changes: 1 addition & 2 deletions Desktop.Linux/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
1 change: 0 additions & 1 deletion Desktop.Linux/Services/AppStartup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion Desktop.Linux/Services/KeyboardMouseInputLinux.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
2 changes: 1 addition & 1 deletion Desktop.Linux/Services/ScreenCapturerLinux.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
1 change: 0 additions & 1 deletion Desktop.Linux/Startup/IServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 0 additions & 1 deletion Desktop.Linux/Usings.cs
Original file line number Diff line number Diff line change
@@ -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;
2 changes: 1 addition & 1 deletion Desktop.Native/Linux/LibX11.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion Desktop.Native/Linux/LibXtst.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.InteropServices;

namespace Remotely.Desktop.Shared.Native.Linux;
namespace Remotely.Desktop.Native.Linux;

public class LibXtst
{
Expand Down
2 changes: 1 addition & 1 deletion Desktop.Native/Linux/Libc.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.InteropServices;

namespace Remotely.Desktop.Shared.Native.Linux;
namespace Remotely.Desktop.Native.Linux;

public class Libc
{
Expand Down
2 changes: 1 addition & 1 deletion Desktop.Native/Linux/libXrandr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

using System.Runtime.InteropServices;

namespace Remotely.Desktop.Shared.Native.Linux;
namespace Remotely.Desktop.Native.Linux;

public static class LibXrandr
{
Expand Down
3 changes: 1 addition & 2 deletions Desktop.Native/Windows/ADVAPI32.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
5 changes: 2 additions & 3 deletions Desktop.Native/Windows/GDI32.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
3 changes: 1 addition & 2 deletions Desktop.Native/Windows/Kernel32.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
5 changes: 2 additions & 3 deletions Desktop.Native/Windows/SECUR32.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion Desktop.Native/Windows/Shlwapi.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Desktop.Native/Windows/User32.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
5 changes: 2 additions & 3 deletions Desktop.Native/Windows/WTSAPI32.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
Loading

0 comments on commit 0f023d2

Please sign in to comment.