Skip to content

Commit

Permalink
Update StandardConnectionInfoProvider.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
nytian authored Jun 18, 2024
1 parent aeff250 commit cbda2b6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public StandardConnectionInfoProvider(IConfiguration configuration)
}

// This implementation is IConfigurationSection.Exists. Details: https://github.com/dotnet/runtime/blob/main/src/libraries/Microsoft.Extensions.Configuration.Abstractions/src/ConfigurationExtensions.cs#L78
// Functions host v1 (.net462 framework) doesn't support this method so we implement a substitute one here.
// Functions host v1 (.net462 framework) doesn't support this method so we implement a substitute one here.
private bool IfExists(IConfigurationSection section)
{
if (section == null)
Expand All @@ -37,6 +37,7 @@ private bool IfExists(IConfigurationSection section)
{
return section.GetChildren().Any();
}

return true;
}

Expand Down

0 comments on commit cbda2b6

Please sign in to comment.