Skip to content

Commit

Permalink
Similar to NetFx
Browse files Browse the repository at this point in the history
  • Loading branch information
cheenamalhotra committed May 22, 2020
1 parent 0b3dd70 commit f6abde4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ internal partial class SqlAuthenticationProviderManager
static SqlAuthenticationProviderManager()
{
var activeDirectoryAuthNativeProvider = new ActiveDirectoryNativeAuthenticationProvider();
SqlAuthenticationProviderConfigurationSection configurationSection;
SqlAuthenticationProviderConfigurationSection configurationSection = null;

try
{
configurationSection = (SqlAuthenticationProviderConfigurationSection)ConfigurationManager.GetSection(SqlAuthenticationProviderConfigurationSection.Name);
}
catch (ConfigurationErrorsException)
{
configurationSection = null;
// Don't throw an error for invalid config files
}

Instance = new SqlAuthenticationProviderManager(configurationSection);
Expand Down

0 comments on commit f6abde4

Please sign in to comment.