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.

Made with ❤️ on ABP v9.1.0-preview. Updated on January 02, 2025, 07:06