Open Closed

SAAS #8572


User avatar
0
ramkumar.subramanian created

I am using abp.io 8.2, trying to achieve single instance with multiple DB My requirement is, based on the request header "__tenent" , My setting file should change like "AppSettings.ClientA.json" "AppSettings.ClientB.json"

My Appsettings.json should differ for each tenent..Please suggest.

if ClientA--> request api call with header as tenenid of client A ,then system should look for "AppSettings.ClientA.json" if ClientB--> request api call with header as tenenid of client B, then system should look for "AppSettings.ClientB.json"

Thanks.


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Do you want to use IConfiguration to read the value from AppSettings.ClientA/ClientB.json?

    If current tenant is A then IConfiguration get value of tenantA.

    Thanks.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on July 17, 2025, 06:22