So I have the following config file (quartz.config)
<add key="quartz.threadPool.type" value="Quartz.Simpl.SimpleThreadPool, Quartz" />
<add key="quartz.threadPool.threadCount" value="1" />
<add key="quartz.threadPool.threadPriority" value="1" />
<add key="quartz.jobStore.type" value="Quartz.Impl.AdoJobStore.JobStoreTX, Quartz" />
<add key="quartz.jobStore.misfireThreshold" value="180000" />
<add key="quartz.jobStore.dataSource" value="quartzDS" />
<add key="quartz.jobStore.driverDelegateType" value="Quartz.Impl.AdoJobStore.SqlServerDelegate, Quartz" />
<add key="quartz.jobStore.lockHandler.type" value="Quartz.Impl.AdoJobStore.UpdateLockRowSemaphore, Quartz" />
<add key="quartz.jobStore.tablePrefix" value="QRTZ_" />
<add key="quartz.jobStore.clustered" value="true" />
<add key="quartz.jobStore.useProperties" value="false" />
<add key="quartz.dataSource.quartzDS.provider" value="SqlServer-20" />
I want when I start my web api to loop over a list of tenants and add a section for the connection string name (each one for a tenant).
I'm done with everything but the last part where I need to edit the config file before launching a scheduler (for each tenant).
I looked for many solutions but all of them were about changing/adding a field in the web.config like this or this without having the option to add/edit a field to a different config file.