AppConfiguration.OnInitialize
Override this method to handle custom initialization tasks.
This method should: create a provider and call it's Read()
method to populate the current instance of the configuration
object.
If all you need is to create a default provider configuration
use the OnCreateDefaultProvider() method to override instead.
Use this method if you need to perform custom actions beyond
provider instantiation.
public abstract void OnInitialize(IConfigurationProvider provider, string sectionName, object configData)
Parameters
provider
Provider value - can be null in which case ConfigurationFileProvider is used
sectionName
Sub Section name - can be null. Classname is used if null. Can be "appSettings"
configData
Any additional configuration data that can be used to
configure the provider.
