using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; namespace DS.Module.UserModule; /// /// 注入用户服务 /// public static class UserModuleInstall { /// /// /// /// public static void AddUserModuleInstall(this IServiceCollection services) { if (services == null) throw new ArgumentNullException(nameof(services)); services.AddSingleton(); //services.AddTransient(); services.AddScoped(); } }