using System.Reflection; using GB5Shared.GOP.Qualifier; using CostingDAL.CustomCode.CostAnalysis; using CostingDAL.DTO.Costing; using GB5Shared.EntityHandler; using GB5Shared.FileUpload; using GB5Shared.GB5Library.Qualifier; using GB5Shared.Hosting; using GB5Shared.PubSub.OutBox; using GB5Shared.WorkFlow.WorkFlowEngine; using GB5Shared.WorkFlow.WorkFlowRunTime; namespace CostingSL; public class CostingModule : IModule { public void Register(IServiceCollection services, IConfiguration configuration) { services.AddScoped>(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddGB5QualifierEngine(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); var costingBLLAssembly = Assembly.Load("CostingBLL"); var costingDALAssembly = Assembly.Load("CostingDAL"); services.Scan(scan => scan .FromAssemblies(costingBLLAssembly, costingDALAssembly) .AddClasses() .AsImplementedInterfaces() .WithScopedLifetime()); } public void MapEndpoints(WebApplication app) { } }