Shared via mail, thanks
maliming, I also see other problems with the template. I've compared against standard app template.
In standard app template:
In nolayer
Thanks. In the snippet below, the template also seems to be missing the automapper module registration
private void ConfigureAutoMapper(IServiceCollection services)
{
services.AddAutoMapperObjectMapper<MyModule>(); // This line seems to be missing too
Configure<AbpAutoMapperOptions>(options =>
{
/* Uncomment `validate: true` if you want to enable the Configuration Validation feature.
* See AutoMapper's documentation to learn what it is:
* https://docs.automapper.org/en/stable/Configuration-validation.html
*/
options.AddMaps<MyModule>(/* validate: true */);
});
}
Can you confirm?
Yes this worked, should this be part of the standard template ?
Perfect that worked, I'm not sure why that line was added ( I definitely did not add it manually to the project)
Thanks again!
sent via email
Hi Maliming
Can I list the tenants in my DB in my configureservices on application module? If yes, can you show a sample please?
Hi Enisn,
Thanks for the info, yes I know how to add an http client, if you check my original question here its how to loop through the list of tenants so i can add http clients for each tenant, could you please provide an example of how to loop the tenants in my configure services so i can add required httpclients?
You can see currently I'm doing this, I'm missing the tenant list and specific settings part.