using Microsoft.Extensions.DependencyInjection; using Pf2e.Scrapper.WPF.EntityViewer.Stores; using Pf2e.Scrapper.WPF.EntityViewer.ViewModel; using Pf2e.WPF.EntityViewer.Stores; using Pf2e.WPF.EntityViewer.ViewModel; namespace Pf2e.WPF; /// /// Расширение для IServiceCollection, позволяющее регистрировать сервисы WPF. /// public static class WpfServiceProviderExtension { /// /// Регистрация сервисов WPF в IServiceCollection. /// /// Коллекция сервисов. /// Коллекция сервисов ( для Fluent API). public static IServiceCollection RegisterWpfServices(this IServiceCollection collection) { return collection // ViewModels .AddTransient() .AddTransient() .AddTransient() // Stores .AddSingleton() .AddSingleton() // ; } }