Hello,
I'm building a custom provider and would like to know how to specify a different configuration file (ex: MyProvider.Config) for my provider to pick the configuration from. By default it is using Web.Config.
Can I specify the path to the custom config file in MyProviderConfiguration class?
Example:
internal class MyProviderConfiguration : ConfigurationSection
{
[ConfigurationProperty("providers")]
public ProviderSettingsCollection Providers
{
get
{
return (ProviderSettingsCollection)base["providers"];
}
}
[ConfigurationProperty("default", DefaultValue = "TestProvider")]
public string Default
{
get
{
return (string)base["default"];
}
set
{
base["default"] = value;
}
}
}
Thank you
-Oleg