using System.Diagnostics.CodeAnalysis; using Microsoft.Extensions.DependencyInjection; namespace Solicitors.Core; [SuppressMessage("ReSharper", "InconsistentNaming")] public static class DIExtensions { public static IServiceCollection AddCore(this IServiceCollection services) { return services .AddScoped() .AddScoped(sp => sp.GetRequiredService()) .AddScoped() .AddScoped(); } }