using Erp.Sender.Localization; using Erp.Sender.Mail; using Erp.Sender.Mail.AmazonSes; using Erp.Sender.Rocket; using Erp.Sender.Sms; using Erp.Sender.Sms.PostaGuvercini; using Erp.Sender.WhatsApp; using Microsoft.Extensions.DependencyInjection; using Volo.Abp.BackgroundJobs; using Volo.Abp.Emailing; using Volo.Abp.Localization; using Volo.Abp.Modularity; using Volo.Abp.Sms; namespace Erp.Sender; [DependsOn( typeof(AbpEmailingModule), typeof(AbpSmsModule))] public class ErpSenderModule : AbpModule { public override void ConfigureServices(ServiceConfigurationContext context) { Configure(options => { options.Resources.Add("en"); }); Configure(options => { options.AddJob(); }); //Register a factory method that resolves from IServiceProvider context.Services.AddScoped(sp => sp.GetRequiredService()); context.Services.AddScoped(sp => sp.GetRequiredService()); context.Services.AddScoped(sp => sp.GetRequiredService()); context.Services.AddScoped(sp => sp.GetRequiredService()); context.Services.AddHttpClient(); context.Services.AddScoped(sp => sp.GetRequiredService()); context.Services.AddHttpClient(); context.Services.AddScoped(sp => sp.GetRequiredService()); context.Services.AddHttpClient(); context.Services.AddScoped(sp => sp.GetRequiredService()); } }