using System.Reflection; using GB5Shared.DaprCache; using GB5Shared.Hosting; namespace BizProcessSL; public class BizProcessModule : IModule { public void Register(IServiceCollection services, IConfiguration configuration) { services.AddScoped(); var bll = Assembly.Load("BizProcessBLL"); var dal = Assembly.Load("BizProcessDAL"); services.Scan(scan => scan .FromAssemblies(bll, dal) .AddClasses(c => c.Where(t => !t.IsAbstract && !t.IsInterface && (t.Namespace == null || !t.Namespace.Contains(".DTO")))) .AsImplementedInterfaces() .WithScopedLifetime()); } public void MapEndpoints(WebApplication app) { } }