using Explorer.Application; using Explorer.Domain.Abstractions; using Explorer.Presentation; using Explorer.Presentation.ViewModels; using Explorer.Windows; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; namespace Explorer.App; public static class AppServices { public static IServiceCollection AddExplorerUi(this IServiceCollection services) { services.AddSingleton(); services.AddSingleton(); services.AddSingleton(); services.AddSingleton(sp => sp.GetRequiredService()); services.AddSingleton(); services.AddSingleton(); services.AddHostedService(sp => sp.GetRequiredService()); return services; } }