using Ghost.Data.Services; using Ghost.Editor.View.Pages.EngineEditor; using Ghost.Editor.View.Pages.Landing; using Ghost.Editor.View.Windows; using Ghost.Editor.ViewModels.Pages.EngineEditor; using Ghost.Editor.ViewModels.Pages.Landing; using Ghost.Editor.ViewModels.Windows; using Ghost.Engine; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; namespace Ghost.Editor.Utilities; internal static partial class HostHelper { public static void AddLandingScope(HostBuilderContext context, IServiceCollection services) { services.AddSingleton(); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); } public static void AddEngineScope(HostBuilderContext context, IServiceCollection services) { services.AddSingleton(); services.AddSingleton(); services.AddSingleton(); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); } }