using InkForge.Data; using InkForge.Desktop.Data; using InkForge.Desktop.Data.Options; using InkForge.Desktop.Managers; using InkForge.Desktop.Models; using InkForge.Desktop.ViewModels; using Microsoft.EntityFrameworkCore; using ReactiveUI; using Splat; namespace Microsoft.Extensions.DependencyInjection; public static class InkForgeServiceCollections { public static IServiceCollection AddInkForge(this IServiceCollection services) { services.AddHttpClient(); services.AddScoped(); services.AddScoped, NoteDbContextFactory>(); services.AddScoped(); services.AddSingleton(); services.AddSingleton(); Locator.CurrentMutable.RegisterViewsForViewModels(typeof(InkForgeServiceCollections).Assembly); return services; } }