using BililiveRecorder.Core; using BililiveRecorder.Core.Config.V2; using Microsoft.Extensions.DependencyInjection; namespace BililiveRecorder.DependencyInjection { public static class DependencyInjectionExtensions { public static void AddCore(this IServiceCollection services) { services.AddSingleton(); #pragma warning disable IDE0001 services.AddSingleton(x => x.GetRequiredService().Config); services.AddSingleton(x => x.GetRequiredService().Global); #pragma warning restore IDE0001 services.AddSingleton(); services.AddSingleton(); } } }