I have a module that uses multithreading. I want to store the number of threads to be created by the module in the web.config
file.
What tag should I use?
I have a module that uses multithreading. I want to store the number of threads to be created by the module in the web.config
file.
What tag should I use?
Put it in the appSettings section.
<appSettings>
<add key="myModuleThreadCount" value="4" />
</appSettings>
Then in your code, reference it as so:
var threads = int.Parse( WebConfigurationManager.AppSettings["myModuleThreadCount"] );