using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DS.Module.EmailModule { /// /// 注入Email服务 /// public static class EmailModuleInstall { /// /// /// /// /// public static void AddEmailModuleInstall(this IServiceCollection services) { if (services == null) throw new ArgumentNullException(nameof(services)); services.AddScoped(); } } }