using Remotely.Desktop.Shared.Abstractions; 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; namespace Remotely.Desktop.Linux.Startup; public static class IServiceCollectionExtensions { /// /// Adds Linux and cross-platform remote control services to the service collection. /// All methods on must be called to register /// required services. /// /// /// public static void AddRemoteControlLinux(this IServiceCollection services) { services.AddRemoteControlXplat(); services.AddRemoteControlUi(); services.AddSingleton(); services.AddSingleton(); services.AddSingleton(); services.AddSingleton(); services.AddSingleton(); services.AddTransient(); services.AddScoped(); services.AddSingleton(); services.AddSingleton(); } }