Update namespaces.

This commit is contained in:
Jared Goodwin 2024-07-16 09:25:15 -07:00
parent 73db96e8b1
commit 81641afe06
235 changed files with 521 additions and 586 deletions

View File

@ -1,4 +1,4 @@
using Immense.RemoteControl.Desktop.Shared.Native.Windows;
using Remotely.Desktop.Shared.Native.Windows;
using Microsoft.AspNetCore.SignalR.Client;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;

View File

@ -1,13 +1,10 @@
using Immense.RemoteControl.Shared;
using Remotely.Shared;
using Microsoft.Extensions.Logging;
using Remotely.Shared;
using Remotely.Shared.Models;
using Remotely.Shared.Utilities;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text.Json;
namespace Remotely.Agent.Services;

View File

@ -1,4 +1,4 @@
using Immense.RemoteControl.Shared.Extensions;
using Remotely.Shared.Extensions;
using Microsoft.AspNetCore.SignalR.Client;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;

View File

@ -1,4 +1,4 @@
using Immense.RemoteControl.Desktop.Shared.Native.Windows;
using Remotely.Desktop.Shared.Native.Windows;
using Microsoft.AspNetCore.SignalR.Client;
using Microsoft.Extensions.Logging;
using Remotely.Agent.Interfaces;

View File

@ -1,4 +1,4 @@
using Immense.RemoteControl.Desktop.Shared.Native.Windows;
using Remotely.Desktop.Shared.Native.Windows;
using Microsoft.Extensions.Logging;
using Remotely.Agent.Interfaces;
using Remotely.Shared.Dtos;

View File

@ -4,7 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<ApplicationIcon>Assets\favicon.ico</ApplicationIcon>
<AssemblyName>Remotely_Desktop</AssemblyName>
<RootNamespace>Remotely.Desktop.XPlat</RootNamespace>
<RootNamespace>Remotely.Desktop.Linux</RootNamespace>
<Platforms>AnyCPU;x64;x86</Platforms>
</PropertyGroup>
<PropertyGroup>

View File

@ -1,19 +1,16 @@
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using System.Threading.Tasks;
using Remotely.Desktop.Shared.Abstractions;
using System.Threading;
using System;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Remotely.Shared.Services;
using Immense.RemoteControl.Desktop.Shared.Services;
using Remotely.Desktop.Shared.Services;
using System.Diagnostics;
using Remotely.Shared.Utilities;
using Immense.RemoteControl.Desktop.Shared.Startup;
using System.Linq;
using Immense.RemoteControl.Desktop.Linux.Startup;
using Immense.RemoteControl.Desktop.UI.Services;
using Remotely.Desktop.Shared.Startup;
using Remotely.Desktop.Linux.Startup;
using Remotely.Desktop.UI.Services;
using Avalonia;
using Immense.RemoteControl.Desktop.UI;
using Remotely.Desktop.UI;
using Desktop.Shared.Services;
namespace Remotely.Desktop.XPlat;

View File

@ -1,11 +1,11 @@
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Immense.RemoteControl.Desktop.Shared.Enums;
using Immense.RemoteControl.Desktop.Shared.Services;
using Immense.RemoteControl.Desktop.UI.Services;
using Immense.RemoteControl.Shared.Models;
using Remotely.Desktop.Shared.Abstractions;
using Remotely.Desktop.Shared.Enums;
using Remotely.Desktop.Shared.Services;
using Remotely.Desktop.UI.Services;
using Remotely.Shared.Models;
using Microsoft.Extensions.Logging;
namespace Immense.RemoteControl.Desktop.Linux.Services;
namespace Remotely.Desktop.Linux.Services;
internal class AppStartup : IAppStartup
{

View File

@ -1,6 +1,6 @@
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Remotely.Desktop.Shared.Abstractions;
namespace Immense.RemoteControl.Desktop.Linux.Services;
namespace Remotely.Desktop.Linux.Services;
public class AudioCapturerLinux : IAudioCapturer
{

View File

@ -1,8 +1,8 @@
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Immense.RemoteControl.Shared.Models;
using Remotely.Desktop.Shared.Abstractions;
using Remotely.Shared.Models;
using System.Drawing;
namespace Immense.RemoteControl.Desktop.Linux.Services;
namespace Remotely.Desktop.Linux.Services;
public class CursorIconWatcherLinux : ICursorIconWatcher
{

View File

@ -1,15 +1,15 @@
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Immense.RemoteControl.Desktop.Shared.Services;
using Immense.RemoteControl.Desktop.Shared.ViewModels;
using Remotely.Desktop.Shared.Abstractions;
using Remotely.Desktop.Shared.Services;
using Remotely.Desktop.Shared.ViewModels;
using Microsoft.Extensions.Logging;
using System.Collections.Concurrent;
using Immense.RemoteControl.Desktop.UI.Controls.Dialogs;
using Immense.RemoteControl.Desktop.UI.Views;
using Immense.RemoteControl.Desktop.UI.Services;
using Remotely.Desktop.UI.Controls.Dialogs;
using Remotely.Desktop.UI.Views;
using Remotely.Desktop.UI.Services;
using System.Threading;
using System.IO;
namespace Immense.RemoteControl.Desktop.Linux.Services;
namespace Remotely.Desktop.Linux.Services;
public class FileTransferServiceLinux : IFileTransferService
{

View File

@ -1,10 +1,10 @@
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Immense.RemoteControl.Desktop.Shared.Enums;
using Immense.RemoteControl.Desktop.Shared.Native.Linux;
using Immense.RemoteControl.Desktop.Shared.Services;
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;
namespace Immense.RemoteControl.Desktop.Linux.Services;
namespace Remotely.Desktop.Linux.Services;
public class KeyboardMouseInputLinux : IKeyboardMouseInput
{

View File

@ -1,13 +1,13 @@
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Immense.RemoteControl.Desktop.Shared.Native.Linux;
using Immense.RemoteControl.Desktop.Shared.Services;
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;
namespace Immense.RemoteControl.Desktop.Linux.Services;
namespace Remotely.Desktop.Linux.Services;
public class ScreenCapturerLinux : IScreenCapturer
{

View File

@ -1,9 +1,9 @@
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Immense.RemoteControl.Desktop.Shared.Services;
using Remotely.Desktop.Shared.Abstractions;
using Remotely.Desktop.Shared.Services;
using Microsoft.Extensions.Logging;
using Immense.RemoteControl.Desktop.UI.Services;
using Remotely.Desktop.UI.Services;
namespace Immense.RemoteControl.Desktop.Linux.Services;
namespace Remotely.Desktop.Linux.Services;
public class ShutdownServiceLinux : IShutdownService
{

View File

@ -1,12 +1,12 @@
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Immense.RemoteControl.Desktop.Shared.Startup;
using Remotely.Desktop.Shared.Abstractions;
using Remotely.Desktop.Shared.Startup;
using Microsoft.Extensions.DependencyInjection;
using Immense.RemoteControl.Desktop.Linux.Services;
using Immense.RemoteControl.Desktop.UI.ViewModels;
using Immense.RemoteControl.Desktop.UI.Services;
using Immense.RemoteControl.Desktop.UI.Startup;
using Remotely.Desktop.Linux.Services;
using Remotely.Desktop.UI.ViewModels;
using Remotely.Desktop.UI.Services;
using Remotely.Desktop.UI.Startup;
namespace Immense.RemoteControl.Desktop.Linux.Startup;
namespace Remotely.Desktop.Linux.Startup;
public static class IServiceCollectionExtensions
{

View File

@ -26,7 +26,7 @@ in this Software without prior written authorization from The Open Group.
using System.Runtime.InteropServices;
namespace Immense.RemoteControl.Desktop.Shared.Native.Linux;
namespace Remotely.Desktop.Shared.Native.Linux;
public static unsafe class LibX11
{

View File

@ -1,6 +1,6 @@
using System.Runtime.InteropServices;
namespace Immense.RemoteControl.Desktop.Shared.Native.Linux;
namespace Remotely.Desktop.Shared.Native.Linux;
public class LibXtst
{

View File

@ -1,6 +1,6 @@
using System.Runtime.InteropServices;
namespace Immense.RemoteControl.Desktop.Shared.Native.Linux;
namespace Remotely.Desktop.Shared.Native.Linux;
public class Libc
{

View File

@ -29,7 +29,7 @@
using System.Runtime.InteropServices;
namespace Immense.RemoteControl.Desktop.Shared.Native.Linux;
namespace Remotely.Desktop.Shared.Native.Linux;
public static class LibXrandr
{

View File

@ -2,7 +2,7 @@ using System;
using System.Runtime.InteropServices;
using System.Security;
namespace Immense.RemoteControl.Desktop.Shared.Native.Windows;
namespace Remotely.Desktop.Shared.Native.Windows;
public static class ADVAPI32
{

View File

@ -1,7 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace Immense.RemoteControl.Desktop.Shared.Native.Windows;
namespace Remotely.Desktop.Shared.Native.Windows;
public static class GDI32
{

View File

@ -1,7 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace Immense.RemoteControl.Desktop.Shared.Native.Windows;
namespace Remotely.Desktop.Shared.Native.Windows;
public static class Kernel32
{

View File

@ -1,4 +1,4 @@
using Immense.RemoteControl.Desktop.Shared.Native.Windows;
using Remotely.Desktop.Shared.Native.Windows;
using Microsoft.Win32.SafeHandles;
using System;
using System.Runtime.InteropServices;

View File

@ -1,6 +1,6 @@
using System.Runtime.InteropServices;
namespace Immense.RemoteControl.Desktop.Shared.Native.Windows;
namespace Remotely.Desktop.Shared.Native.Windows;
// https://docs.microsoft.com/en-us/windows/win32/api/shlwapi/nf-shlwapi-isos
public class Shlwapi

View File

@ -1,7 +1,7 @@
using Microsoft.Win32.SafeHandles;
using System.Runtime.InteropServices;
namespace Immense.RemoteControl.Desktop.Shared.Native.Windows;
namespace Remotely.Desktop.Shared.Native.Windows;
public static class User32
{

View File

@ -1,7 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace Immense.RemoteControl.Desktop.Shared.Native.Windows;
namespace Remotely.Desktop.Shared.Native.Windows;
public static class WTSAPI32
{

View File

@ -1,12 +1,12 @@
using Immense.RemoteControl.Shared.Models;
using Remotely.Shared.Models;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
using System.Text;
using static Immense.RemoteControl.Desktop.Shared.Native.Windows.ADVAPI32;
using static Immense.RemoteControl.Desktop.Shared.Native.Windows.User32;
using static Remotely.Desktop.Shared.Native.Windows.ADVAPI32;
using static Remotely.Desktop.Shared.Native.Windows.User32;
namespace Immense.RemoteControl.Desktop.Shared.Native.Windows;
namespace Remotely.Desktop.Shared.Native.Windows;
// TODO: Use https://github.com/microsoft/CsWin32 for all p/invokes.
public class Win32Interop

View File

@ -1,4 +1,4 @@
namespace Immense.RemoteControl.Desktop.Shared.Abstractions;
namespace Remotely.Desktop.Shared.Abstractions;
public interface IAppStartup
{

View File

@ -1,4 +1,4 @@
namespace Immense.RemoteControl.Desktop.Shared.Abstractions;
namespace Remotely.Desktop.Shared.Abstractions;
public interface IAudioCapturer
{

View File

@ -1,7 +1,7 @@
using Immense.RemoteControl.Shared.Models;
using Remotely.Shared.Models;
using Remotely.Shared.Entities;
namespace Immense.RemoteControl.Desktop.Shared.Abstractions;
namespace Remotely.Desktop.Shared.Abstractions;
public interface IBrandingProvider
{

View File

@ -1,6 +1,6 @@
using Remotely.Shared.Models;
namespace Immense.RemoteControl.Desktop.Shared.Abstractions;
namespace Remotely.Desktop.Shared.Abstractions;
public interface IChatUiService
{

View File

@ -1,4 +1,4 @@
namespace Immense.RemoteControl.Desktop.Shared.Abstractions;
namespace Remotely.Desktop.Shared.Abstractions;
public interface IClipboardService
{

View File

@ -1,6 +1,6 @@
using Immense.RemoteControl.Shared.Models;
using Remotely.Shared.Models;
namespace Immense.RemoteControl.Desktop.Shared.Abstractions;
namespace Remotely.Desktop.Shared.Abstractions;
public interface ICursorIconWatcher
{

View File

@ -1,7 +1,7 @@
using Immense.RemoteControl.Desktop.Shared.Services;
using Immense.RemoteControl.Desktop.Shared.ViewModels;
using Remotely.Desktop.Shared.Services;
using Remotely.Desktop.Shared.ViewModels;
namespace Immense.RemoteControl.Desktop.Shared.Abstractions;
namespace Remotely.Desktop.Shared.Abstractions;
public interface IFileTransferService
{

View File

@ -1,7 +1,7 @@
using Immense.RemoteControl.Desktop.Shared.Enums;
using Immense.RemoteControl.Desktop.Shared.Services;
using Remotely.Desktop.Shared.Enums;
using Remotely.Desktop.Shared.Services;
namespace Immense.RemoteControl.Desktop.Shared.Abstractions;
namespace Remotely.Desktop.Shared.Abstractions;
public interface IKeyboardMouseInput
{

View File

@ -1,6 +1,6 @@
using Immense.RemoteControl.Shared.Enums;
using Remotely.Shared.Enums;
namespace Immense.RemoteControl.Desktop.Shared.Abstractions;
namespace Remotely.Desktop.Shared.Abstractions;
public interface IRemoteControlAccessService
{

View File

@ -2,7 +2,7 @@
using SkiaSharp;
using System.Drawing;
namespace Immense.RemoteControl.Desktop.Shared.Abstractions;
namespace Remotely.Desktop.Shared.Abstractions;
public interface IScreenCapturer : IDisposable
{

View File

@ -1,4 +1,4 @@
namespace Immense.RemoteControl.Desktop.Shared.Abstractions;
namespace Remotely.Desktop.Shared.Abstractions;
public interface ISessionIndicator
{

View File

@ -1,4 +1,4 @@
namespace Immense.RemoteControl.Desktop.Shared.Abstractions;
namespace Remotely.Desktop.Shared.Abstractions;
public interface IShutdownService
{

View File

@ -5,6 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<RootNamespace>Remotely.Desktop.Shared</RootNamespace>
</PropertyGroup>
<ItemGroup>

View File

@ -1,4 +1,4 @@
namespace Immense.RemoteControl.Desktop.Shared.Enums;
namespace Remotely.Desktop.Shared.Enums;
public enum AppMode
{

View File

@ -1,4 +1,4 @@
namespace Immense.RemoteControl.Desktop.Shared.Enums;
namespace Remotely.Desktop.Shared.Enums;
public enum ButtonAction
{

View File

@ -1,6 +1,6 @@
using SkiaSharp;
namespace Immense.RemoteControl.Desktop.Shared.Extensions;
namespace Remotely.Desktop.Shared.Extensions;
public static class SKBitmapExtensions
{

View File

@ -1,4 +1,4 @@
namespace Immense.RemoteControl.Desktop.Shared.Messages;
namespace Remotely.Desktop.Shared.Messages;
public class AppStateHostChangedMessage
{

View File

@ -1,2 +1,2 @@
namespace Immense.RemoteControl.Desktop.Shared.Messages;
namespace Remotely.Desktop.Shared.Messages;
public record DisplaySettingsChangedMessage();

View File

@ -1,6 +1,6 @@
using Immense.RemoteControl.Shared.Enums;
using Remotely.Shared.Enums;
namespace Immense.RemoteControl.Desktop.Shared.Messages;
namespace Remotely.Desktop.Shared.Messages;
public class WindowsSessionEndingMessage
{

View File

@ -1,6 +1,6 @@
using Immense.RemoteControl.Shared.Enums;
using Remotely.Shared.Enums;
namespace Immense.RemoteControl.Desktop.Shared.Messages;
namespace Remotely.Desktop.Shared.Messages;
public class WindowsSessionSwitchedMessage
{

View File

@ -5,7 +5,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
namespace Immense.RemoteControl.Desktop.Shared.Reactive;
namespace Remotely.Desktop.Shared.Reactive;
public class AsyncRelayCommand : ICommand
{

View File

@ -2,7 +2,7 @@
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace Immense.RemoteControl.Desktop.Shared.Reactive;
namespace Remotely.Desktop.Shared.Reactive;
public class ObservableObject : INotifyPropertyChanged
{

View File

@ -5,7 +5,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
namespace Immense.RemoteControl.Desktop.Shared.Reactive;
namespace Remotely.Desktop.Shared.Reactive;
public class RelayCommand : ICommand
{

View File

@ -1,11 +1,11 @@
using Immense.RemoteControl.Desktop.Shared.Enums;
using Immense.RemoteControl.Desktop.Shared.Messages;
using Immense.RemoteControl.Shared.Models;
using Remotely.Desktop.Shared.Enums;
using Remotely.Desktop.Shared.Messages;
using Remotely.Shared.Models;
using Microsoft.Extensions.Logging;
using Bitbound.SimpleMessenger;
using System.Collections.Concurrent;
namespace Immense.RemoteControl.Desktop.Shared.Services;
namespace Remotely.Desktop.Shared.Services;
public interface IAppState
{

View File

@ -1,6 +1,6 @@
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Immense.RemoteControl.Desktop.Shared.Services;
using Immense.RemoteControl.Shared.Models;
using Remotely.Desktop.Shared.Abstractions;
using Remotely.Desktop.Shared.Services;
using Remotely.Shared.Models;
using Microsoft.Extensions.Logging;
using Remotely.Shared.Entities;
using Remotely.Shared.Primitives;

View File

@ -1,10 +1,10 @@
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Remotely.Desktop.Shared.Abstractions;
using Microsoft.Extensions.Logging;
using Remotely.Shared.Models;
using System.IO.Pipes;
using System.Text.Json;
namespace Immense.RemoteControl.Desktop.Shared.Services;
namespace Remotely.Desktop.Shared.Services;
public interface IChatHostService
{

View File

@ -1,4 +1,4 @@
using Immense.RemoteControl.Desktop.Shared.Native.Linux;
using Remotely.Desktop.Shared.Native.Linux;
using System.Security.Principal;
namespace Desktop.Shared.Services;

View File

@ -1,9 +1,9 @@
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Immense.RemoteControl.Desktop.Shared.Messages;
using Immense.RemoteControl.Desktop.Shared.Native.Windows;
using Immense.RemoteControl.Shared.Enums;
using Immense.RemoteControl.Shared.Interfaces;
using Immense.RemoteControl.Shared.Models;
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;
using Bitbound.SimpleMessenger;
using Microsoft.AspNetCore.SignalR.Client;
using Microsoft.Extensions.DependencyInjection;
@ -11,7 +11,7 @@ using Microsoft.Extensions.Logging;
using Remotely.Shared.Primitives;
using System.Diagnostics;
namespace Immense.RemoteControl.Desktop.Shared.Services;
namespace Remotely.Desktop.Shared.Services;
public interface IDesktopHubConnection
{

View File

@ -1,12 +1,12 @@
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Immense.RemoteControl.Desktop.Shared.Enums;
using Immense.RemoteControl.Desktop.Shared.Native.Windows;
using Immense.RemoteControl.Shared.Helpers;
using Immense.RemoteControl.Shared.Models.Dtos;
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;
namespace Immense.RemoteControl.Desktop.Shared.Services;
namespace Remotely.Desktop.Shared.Services;
public interface IDtoMessageHandler
{

View File

@ -1,9 +1,9 @@
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Remotely.Desktop.Shared.Abstractions;
using Microsoft.AspNetCore.SignalR.Client;
using Microsoft.Extensions.Logging;
using System.Timers;
namespace Immense.RemoteControl.Desktop.Shared.Services;
namespace Remotely.Desktop.Shared.Services;
public interface IIdleTimer
{

View File

@ -1,10 +1,10 @@
using Immense.RemoteControl.Desktop.Shared.Extensions;
using Remotely.Desktop.Shared.Extensions;
using Microsoft.Extensions.Logging;
using Microsoft.IO;
using Remotely.Shared.Primitives;
using SkiaSharp;
namespace Immense.RemoteControl.Desktop.Shared.Services;
namespace Remotely.Desktop.Shared.Services;
public interface IImageHelper
{

View File

@ -1,19 +1,19 @@
using Microsoft.Extensions.DependencyInjection;
using SkiaSharp;
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Immense.RemoteControl.Desktop.Shared.Enums;
using Immense.RemoteControl.Shared.Models;
using Remotely.Desktop.Shared.Abstractions;
using Remotely.Desktop.Shared.Enums;
using Remotely.Shared.Models;
using Microsoft.Extensions.Logging;
using Immense.RemoteControl.Shared.Helpers;
using Immense.RemoteControl.Shared.Models.Dtos;
using Remotely.Shared.Helpers;
using Remotely.Shared.Models.Dtos;
using MessagePack;
using Immense.RemoteControl.Shared.Services;
using Remotely.Shared.Services;
using Microsoft.IO;
using System.Diagnostics;
using Bitbound.SimpleMessenger;
using Immense.RemoteControl.Desktop.Shared.Messages;
using Remotely.Desktop.Shared.Messages;
namespace Immense.RemoteControl.Desktop.Shared.Services;
namespace Remotely.Desktop.Shared.Services;
public interface IScreenCaster : IDisposable
{

View File

@ -1,15 +1,15 @@
using System.Collections.Concurrent;
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Immense.RemoteControl.Shared.Models;
using Remotely.Desktop.Shared.Abstractions;
using Remotely.Shared.Models;
using Microsoft.Extensions.Logging;
using Immense.RemoteControl.Shared.Helpers;
using Immense.RemoteControl.Shared.Models.Dtos;
using Immense.RemoteControl.Desktop.Shared.ViewModels;
using Remotely.Shared.Helpers;
using Remotely.Shared.Models.Dtos;
using Remotely.Desktop.Shared.ViewModels;
using Microsoft.AspNetCore.SignalR.Client;
using Immense.RemoteControl.Shared.Services;
using Immense.RemoteControl.Desktop.Shared.Native.Windows;
using Remotely.Shared.Services;
using Remotely.Desktop.Shared.Native.Windows;
namespace Immense.RemoteControl.Desktop.Shared.Services;
namespace Remotely.Desktop.Shared.Services;
public interface IViewer : IDisposable
{

View File

@ -1,5 +1,5 @@
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Immense.RemoteControl.Shared.Services;
using Remotely.Desktop.Shared.Abstractions;
using Remotely.Shared.Services;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using System;
@ -8,7 +8,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Immense.RemoteControl.Desktop.Shared.Services;
namespace Remotely.Desktop.Shared.Services;
internal interface IViewerFactory
{

View File

@ -1,8 +1,8 @@
using System.CommandLine;
using CommunityToolkit.Diagnostics;
using Immense.RemoteControl.Desktop.Shared.Enums;
using Remotely.Desktop.Shared.Enums;
namespace Immense.RemoteControl.Desktop.Shared.Startup;
namespace Remotely.Desktop.Shared.Startup;
public static class CommandProvider
{
/// <summary>

View File

@ -1,12 +1,12 @@
using Immense.RemoteControl.Desktop.Shared.Services;
using Immense.RemoteControl.Shared.Services;
using Remotely.Desktop.Shared.Services;
using Remotely.Shared.Services;
using Microsoft.AspNetCore.SignalR.Client;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Bitbound.SimpleMessenger;
using Desktop.Shared.Services;
namespace Immense.RemoteControl.Desktop.Shared.Startup;
namespace Remotely.Desktop.Shared.Startup;
public static class IServiceCollectionExtensions
{

View File

@ -1,7 +1,7 @@
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Immense.RemoteControl.Desktop.Shared.Enums;
using Immense.RemoteControl.Desktop.Shared.Native.Windows;
using Immense.RemoteControl.Desktop.Shared.Services;
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;
using Remotely.Shared.Primitives;
@ -9,7 +9,7 @@ using System.CommandLine;
using System.CommandLine.NamingConventionBinder;
using System.Runtime.Versioning;
namespace Immense.RemoteControl.Desktop.Shared.Startup;
namespace Remotely.Desktop.Shared.Startup;
public static class IServiceProviderExtensions
{

View File

@ -1,7 +1,7 @@
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Remotely.Desktop.Shared.Abstractions;
using Microsoft.Extensions.DependencyInjection;
namespace Immense.RemoteControl.Desktop.Shared.Startup;
namespace Remotely.Desktop.Shared.Startup;
public interface IRemoteControlClientBuilder
{

View File

@ -1,4 +1,4 @@
namespace Immense.RemoteControl.Desktop.Shared;
namespace Remotely.Desktop.Shared;
public static class StaticServiceProvider
{

View File

@ -1,6 +1,6 @@
using Immense.RemoteControl.Desktop.Shared.Reactive;
using Remotely.Desktop.Shared.Reactive;
namespace Immense.RemoteControl.Desktop.Shared.ViewModels;
namespace Remotely.Desktop.Shared.ViewModels;
public partial class FileUpload : ObservableObject
{

View File

@ -1,6 +1,6 @@
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Immense.RemoteControl.Desktop.UI.App"
x:Class="Remotely.Desktop.UI.App"
RequestedThemeVariant="Light">
<Application.Styles>
<FluentTheme />

View File

@ -3,7 +3,7 @@ using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Data.Core.Plugins;
using Avalonia.Markup.Xaml;
namespace Immense.RemoteControl.Desktop.UI;
namespace Remotely.Desktop.UI;
public partial class App : Application
{

View File

@ -3,9 +3,9 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
xmlns:vm="clr-namespace:Immense.RemoteControl.Desktop.UI.ViewModels"
xmlns:fakes="clr-namespace:Immense.RemoteControl.Desktop.UI.ViewModels.Fakes"
x:Class="Immense.RemoteControl.Desktop.UI.Controls.Dialogs.MessageBox"
xmlns:vm="clr-namespace:Remotely.Desktop.UI.ViewModels"
xmlns:fakes="clr-namespace:Remotely.Desktop.UI.ViewModels.Fakes"
x:Class="Remotely.Desktop.UI.Controls.Dialogs.MessageBox"
Icon="{Binding WindowIcon}"
Title="{Binding Caption}"
Topmost="True"

View File

@ -2,11 +2,11 @@
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Markup.Xaml;
using CommunityToolkit.Diagnostics;
using Immense.RemoteControl.Desktop.Shared;
using Remotely.Desktop.Shared;
using Microsoft.Extensions.DependencyInjection;
using System.Threading;
namespace Immense.RemoteControl.Desktop.UI.Controls.Dialogs;
namespace Remotely.Desktop.UI.Controls.Dialogs;
public partial class MessageBox : Window
{

View File

@ -1,4 +1,4 @@
namespace Immense.RemoteControl.Desktop.UI.Controls.Dialogs;
namespace Remotely.Desktop.UI.Controls.Dialogs;
public enum MessageBoxResult
{

View File

@ -1,4 +1,4 @@
namespace Immense.RemoteControl.Desktop.UI.Controls.Dialogs;
namespace Remotely.Desktop.UI.Controls.Dialogs;
public enum MessageBoxType
{

View File

@ -10,6 +10,7 @@
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<ValidateExecutableReferencesMatchSelfContained>false</ValidateExecutableReferencesMatchSelfContained>
<RootNamespace>Remotely.Desktop.UI</RootNamespace>
</PropertyGroup>
<ItemGroup>

View File

@ -3,6 +3,6 @@ global using System.IO;
global using System.Collections.Generic;
global using System.Linq;
global using System.Threading.Tasks;
global using Immense.RemoteControl.Desktop.UI.Services;
global using Immense.RemoteControl.Desktop.UI.ViewModels;
global using Immense.RemoteControl.Desktop.UI.Views;
global using Remotely.Desktop.UI.Services;
global using Remotely.Desktop.UI.ViewModels;
global using Remotely.Desktop.UI.Views;

View File

@ -1,11 +1,11 @@
using Avalonia.Controls;
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Remotely.Desktop.Shared.Abstractions;
using System.ComponentModel;
using Immense.RemoteControl.Desktop.UI.Controls.Dialogs;
using Remotely.Desktop.UI.Controls.Dialogs;
using CommunityToolkit.Diagnostics;
using Remotely.Shared.Models;
namespace Immense.RemoteControl.Desktop.UI.Services;
namespace Remotely.Desktop.UI.Services;
public class ChatUiService : IChatUiService
{

View File

@ -1,8 +1,8 @@
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Remotely.Desktop.Shared.Abstractions;
using Microsoft.Extensions.Logging;
using System.Threading;
namespace Immense.RemoteControl.Desktop.UI.Services;
namespace Remotely.Desktop.UI.Services;
public class ClipboardService : IClipboardService
{

View File

@ -1,4 +1,4 @@
using Immense.RemoteControl.Desktop.UI.Controls.Dialogs;
using Remotely.Desktop.UI.Controls.Dialogs;
using System;
using System.Collections.Generic;
using System.Linq;
@ -6,7 +6,7 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Immense.RemoteControl.Desktop.UI.Services;
namespace Remotely.Desktop.UI.Services;
public interface IDialogProvider
{

View File

@ -1,9 +1,9 @@
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Immense.RemoteControl.Shared.Enums;
using Remotely.Desktop.Shared.Abstractions;
using Remotely.Shared.Enums;
using Microsoft.Extensions.Logging;
using System.Threading;
namespace Immense.RemoteControl.Desktop.UI.Services;
namespace Remotely.Desktop.UI.Services;
public class RemoteControlAccessService : IRemoteControlAccessService
{

View File

@ -1,8 +1,8 @@
using Immense.RemoteControl.Desktop.Shared;
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Remotely.Desktop.Shared;
using Remotely.Desktop.Shared.Abstractions;
using Microsoft.Extensions.DependencyInjection;
namespace Immense.RemoteControl.Desktop.UI.Services;
namespace Remotely.Desktop.UI.Services;
public class SessionIndicator : ISessionIndicator
{

View File

@ -3,12 +3,12 @@ using Avalonia.Controls;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Input.Platform;
using Avalonia.Threading;
using Immense.RemoteControl.Shared.Helpers;
using Remotely.Shared.Helpers;
using Microsoft.Extensions.Logging;
using Remotely.Shared.Primitives;
using System.Threading;
namespace Immense.RemoteControl.Desktop.UI.Services;
namespace Remotely.Desktop.UI.Services;
public interface IUiDispatcher
{

View File

@ -1,10 +1,10 @@
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Immense.RemoteControl.Desktop.Shared.Services;
using Remotely.Desktop.Shared.Abstractions;
using Remotely.Desktop.Shared.Services;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using System.IO;
namespace Immense.RemoteControl.Desktop.UI.Services;
namespace Remotely.Desktop.UI.Services;
// Normally, I'd use a view model locator. But enough view models require a factory pattern
// that I thought it more consistent to put them all here.

View File

@ -1,7 +1,7 @@
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Remotely.Desktop.Shared.Abstractions;
using Microsoft.Extensions.DependencyInjection;
namespace Immense.RemoteControl.Desktop.UI.Startup;
namespace Remotely.Desktop.UI.Startup;
public static class IServiceCollectionExtensions
{

View File

@ -1,15 +1,15 @@
using Avalonia.Controls;
using Avalonia.Media;
using Avalonia.Media.Imaging;
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Immense.RemoteControl.Desktop.Shared.Reactive;
using Immense.RemoteControl.Shared.Models;
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;
namespace Immense.RemoteControl.Desktop.UI.ViewModels;
namespace Remotely.Desktop.UI.ViewModels;
public interface IBrandedViewModelBase
{
@ -76,7 +76,7 @@ public class BrandedViewModelBase : ObservableObject, IBrandedViewModelBase
using var imageStream =
Assembly
.GetExecutingAssembly()
.GetManifestResourceStream("Immense.RemoteControl.Desktop.Shared.Assets.DefaultIcon.png") ?? new MemoryStream();
.GetManifestResourceStream("Remotely.Desktop.Shared.Assets.DefaultIcon.png") ?? new MemoryStream();
Icon = new Bitmap(imageStream);
}

View File

@ -3,13 +3,13 @@ using System.Collections.ObjectModel;
using System.IO;
using System.Text.Json;
using System.Windows.Input;
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Remotely.Desktop.Shared.Abstractions;
using Microsoft.Extensions.Logging;
using Immense.RemoteControl.Desktop.Shared.Reactive;
using Remotely.Desktop.Shared.Reactive;
using Microsoft.Extensions.DependencyInjection;
using Remotely.Shared.Models;
namespace Immense.RemoteControl.Desktop.UI.ViewModels;
namespace Remotely.Desktop.UI.ViewModels;
public interface IChatWindowViewModel : IBrandedViewModelBase
{

View File

@ -1,13 +1,13 @@
using Avalonia.Controls;
using Avalonia.Media;
using Avalonia.Media.Imaging;
using Immense.RemoteControl.Desktop.UI.Controls.Dialogs;
using Immense.RemoteControl.Shared.Models;
using Remotely.Desktop.UI.Controls.Dialogs;
using Remotely.Shared.Models;
using Remotely.Shared.Entities;
using System.Diagnostics;
using System.IO;
namespace Immense.RemoteControl.Desktop.UI.ViewModels.Fakes;
namespace Remotely.Desktop.UI.ViewModels.Fakes;
public class FakeBrandedViewModelBase : IBrandedViewModelBase
{
@ -38,7 +38,7 @@ public class FakeBrandedViewModelBase : IBrandedViewModelBase
{
using var imageStream = typeof(Shared.Services.AppState)
.Assembly
.GetManifestResourceStream("Immense.RemoteControl.Desktop.Shared.Assets.DefaultIcon.png") ?? new MemoryStream();
.GetManifestResourceStream("Remotely.Desktop.Shared.Assets.DefaultIcon.png") ?? new MemoryStream();
return new Bitmap(imageStream);
}

View File

@ -1,9 +1,9 @@
using Immense.RemoteControl.Desktop.Shared.Reactive;
using Remotely.Desktop.Shared.Reactive;
using Remotely.Shared.Models;
using System.Collections.ObjectModel;
using System.Windows.Input;
namespace Immense.RemoteControl.Desktop.UI.ViewModels.Fakes;
namespace Remotely.Desktop.UI.ViewModels.Fakes;
public class FakeChatWindowViewModel : FakeBrandedViewModelBase, IChatWindowViewModel
{

View File

@ -1,9 +1,9 @@
using Immense.RemoteControl.Desktop.Shared.Reactive;
using Immense.RemoteControl.Desktop.Shared.ViewModels;
using Remotely.Desktop.Shared.Reactive;
using Remotely.Desktop.Shared.ViewModels;
using System.Collections.ObjectModel;
using System.Windows.Input;
namespace Immense.RemoteControl.Desktop.UI.ViewModels.Fakes;
namespace Remotely.Desktop.UI.ViewModels.Fakes;
public class FakeFileTransferViewModel : FakeBrandedViewModelBase, IFileTransferWindowViewModel
{

View File

@ -1,7 +1,7 @@
using Immense.RemoteControl.Desktop.Shared.Reactive;
using Remotely.Desktop.Shared.Reactive;
using System.Windows.Input;
namespace Immense.RemoteControl.Desktop.UI.ViewModels.Fakes;
namespace Remotely.Desktop.UI.ViewModels.Fakes;
public class FakeHostNamePromptViewModel : FakeBrandedViewModelBase, IHostNamePromptViewModel
{

View File

@ -1,14 +1,14 @@
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Immense.RemoteControl.Desktop.Shared.Reactive;
using Immense.RemoteControl.Desktop.Shared.Services;
using Immense.RemoteControl.Desktop.Shared.ViewModels;
using Immense.RemoteControl.Shared.Models;
using Immense.RemoteControl.Shared.Models.Dtos;
using Remotely.Desktop.Shared.Abstractions;
using Remotely.Desktop.Shared.Reactive;
using Remotely.Desktop.Shared.Services;
using Remotely.Desktop.Shared.ViewModels;
using Remotely.Shared.Models;
using Remotely.Shared.Models.Dtos;
using System.Collections.ObjectModel;
using System.Threading;
using System.Windows.Input;
namespace Immense.RemoteControl.Desktop.UI.ViewModels.Fakes;
namespace Remotely.Desktop.UI.ViewModels.Fakes;
public class FakeMainViewViewModel : FakeBrandedViewModelBase, IMainViewViewModel
{

View File

@ -1,4 +1,4 @@
namespace Immense.RemoteControl.Desktop.UI.ViewModels.Fakes;
namespace Remotely.Desktop.UI.ViewModels.Fakes;
public class FakeMainWindowViewModel : FakeBrandedViewModelBase, IMainWindowViewModel
{

View File

@ -1,8 +1,8 @@
using Immense.RemoteControl.Desktop.Shared.Reactive;
using Remotely.Desktop.Shared.Reactive;
using System.Windows.Input;
using Immense.RemoteControl.Desktop.UI.Controls.Dialogs;
using Remotely.Desktop.UI.Controls.Dialogs;
namespace Immense.RemoteControl.Desktop.UI.ViewModels.Fakes;
namespace Remotely.Desktop.UI.ViewModels.Fakes;
public class FakeMessageBoxViewModel : FakeBrandedViewModelBase, IMessageBoxViewModel
{

View File

@ -1,7 +1,7 @@
using Immense.RemoteControl.Desktop.Shared.Reactive;
using Remotely.Desktop.Shared.Reactive;
using System.Windows.Input;
namespace Immense.RemoteControl.Desktop.UI.ViewModels.Fakes;
namespace Remotely.Desktop.UI.ViewModels.Fakes;
public class FakePromptForAccessViewModel : FakeBrandedViewModelBase, IPromptForAccessWindowViewModel
{

View File

@ -1,4 +1,4 @@
namespace Immense.RemoteControl.Desktop.UI.ViewModels.Fakes;
namespace Remotely.Desktop.UI.ViewModels.Fakes;
internal class FakeSessionIndicatorWindowViewModel : FakeBrandedViewModelBase, ISessionIndicatorWindowViewModel
{
public Task PromptForExit()

View File

@ -1,14 +1,14 @@
using Avalonia.Threading;
using Immense.RemoteControl.Desktop.Shared.Services;
using Immense.RemoteControl.Desktop.Shared.ViewModels;
using Remotely.Desktop.Shared.Services;
using Remotely.Desktop.Shared.ViewModels;
using System.Collections.ObjectModel;
using System.IO;
using System.Windows.Input;
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Remotely.Desktop.Shared.Abstractions;
using Microsoft.Extensions.Logging;
using Immense.RemoteControl.Desktop.Shared.Reactive;
using Remotely.Desktop.Shared.Reactive;
namespace Immense.RemoteControl.Desktop.UI.ViewModels;
namespace Remotely.Desktop.UI.ViewModels;
public interface IFileTransferWindowViewModel : IBrandedViewModelBase
{

View File

@ -1,10 +1,10 @@
using Avalonia.Controls;
using System.Windows.Input;
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Remotely.Desktop.Shared.Abstractions;
using Microsoft.Extensions.Logging;
using Immense.RemoteControl.Desktop.Shared.Reactive;
using Remotely.Desktop.Shared.Reactive;
namespace Immense.RemoteControl.Desktop.UI.ViewModels;
namespace Remotely.Desktop.UI.ViewModels;
public interface IHostNamePromptViewModel : IBrandedViewModelBase
{

View File

@ -1,19 +1,19 @@
using Avalonia.Controls;
using Avalonia.Threading;
using Immense.RemoteControl.Desktop.Shared.Services;
using Immense.RemoteControl.Shared.Models;
using Remotely.Desktop.Shared.Services;
using Remotely.Shared.Models;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Windows.Input;
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Remotely.Desktop.Shared.Abstractions;
using Microsoft.Extensions.Logging;
using Immense.RemoteControl.Desktop.Shared.Reactive;
using Remotely.Desktop.Shared.Reactive;
using Microsoft.Extensions.DependencyInjection;
using Immense.RemoteControl.Desktop.UI.Controls.Dialogs;
using Immense.RemoteControl.Desktop.Shared.Native.Linux;
using Remotely.Desktop.UI.Controls.Dialogs;
using Remotely.Desktop.Shared.Native.Linux;
using Desktop.Shared.Services;
namespace Immense.RemoteControl.Desktop.UI.ViewModels;
namespace Remotely.Desktop.UI.ViewModels;
public interface IMainViewViewModel : IBrandedViewModelBase
{

View File

@ -1,7 +1,7 @@
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Remotely.Desktop.Shared.Abstractions;
using Microsoft.Extensions.Logging;
namespace Immense.RemoteControl.Desktop.UI.ViewModels;
namespace Remotely.Desktop.UI.ViewModels;
public interface IMainWindowViewModel : IBrandedViewModelBase
{

View File

@ -1,11 +1,11 @@
using Avalonia.Controls;
using System.Windows.Input;
using Immense.RemoteControl.Desktop.Shared.Reactive;
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Remotely.Desktop.Shared.Reactive;
using Remotely.Desktop.Shared.Abstractions;
using Microsoft.Extensions.Logging;
using Immense.RemoteControl.Desktop.UI.Controls.Dialogs;
using Remotely.Desktop.UI.Controls.Dialogs;
namespace Immense.RemoteControl.Desktop.UI.ViewModels;
namespace Remotely.Desktop.UI.ViewModels;
public interface IMessageBoxViewModel : IBrandedViewModelBase
{

View File

@ -1,11 +1,11 @@
using Avalonia.Controls;
using Immense.RemoteControl.Desktop.Shared.Abstractions;
using Immense.RemoteControl.Desktop.Shared.Reactive;
using Remotely.Desktop.Shared.Abstractions;
using Remotely.Desktop.Shared.Reactive;
using Microsoft.Extensions.Logging;
using System.Windows.Input;
namespace Immense.RemoteControl.Desktop.UI.ViewModels;
namespace Remotely.Desktop.UI.ViewModels;
public interface IPromptForAccessWindowViewModel : IBrandedViewModelBase
{

Some files were not shown because too many files have changed in this diff Show More