Skip to content

Commit

Permalink
Merge pull request #414 from Azure/main
Browse files Browse the repository at this point in the history
Merge main to release/stable/v6 for 6.0.1 stable release
  • Loading branch information
amerjusupovic authored May 2, 2023
2 parents 97211d7 + 3dc13a0 commit 022ba04
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 7 deletions.
7 changes: 7 additions & 0 deletions AzureAppConfigurationRules.ruleset
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- This rule is to enforce calling ConfigureAwait() when awaiting a Task, preventing thread issues. -->
<RuleSet Name="Default" ToolsVersion="17.0">
<Rules AnalyzerId="Microsoft.CodeAnalysis.NetAnalyzers" RuleNamespace="Microsoft.CodeAnalysis.NetAnalyzers">
<Rule Id="CA2007" Action="Error" />
</Rules>
</RuleSet>
7 changes: 6 additions & 1 deletion Microsoft.Extensions.Configuration.AzureAppConfiguration.sln
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.AppConfigur
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tests.AzureAppConfiguration.Functions.Worker", "tests\Tests.AzureAppConfiguration.Functions.Worker\Tests.AzureAppConfiguration.Functions.Worker.csproj", "{A9287214-6689-479F-A9F8-D0C02DE433F0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleAppWithFailOver", "examples\ConsoleAppWithFailOver\ConsoleAppWithFailOver.csproj", "{A6C611F1-D687-4262-8904-828C239CF2E5}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ConsoleAppWithFailOver", "examples\ConsoleAppWithFailOver\ConsoleAppWithFailOver.csproj", "{A6C611F1-D687-4262-8904-828C239CF2E5}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Properties", "Properties", "{4EC40BFD-526B-474E-8A7E-EF463FB2D55A}"
ProjectSection(SolutionItems) = preProject
AzureAppConfigurationRules.ruleset = AzureAppConfigurationRules.ruleset
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<!-- Nuget Package Version Settings -->

<PropertyGroup>
<OfficialVersion>6.0.0</OfficialVersion>
<OfficialVersion>6.0.1</OfficialVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(CDP_PATCH_NUMBER)'!='' AND '$(CDP_BUILD_TYPE)'=='Official'">
Expand All @@ -39,4 +39,9 @@
<Version>$(OfficialVersion)-$(CDP_PATCH_NUMBER)-$(Revision)</Version>
</PropertyGroup>

<PropertyGroup>
<CodeAnalysisRuleSet>..\..\AzureAppConfigurationRules.ruleset</CodeAnalysisRuleSet>
<EnableNETAnalyzers>True</EnableNETAnalyzers>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<!-- Nuget Package Version Settings -->

<PropertyGroup>
<OfficialVersion>6.0.0</OfficialVersion>
<OfficialVersion>6.0.1</OfficialVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(CDP_PATCH_NUMBER)'!='' AND '$(CDP_BUILD_TYPE)'=='Official'">
Expand All @@ -35,4 +35,9 @@
<Version>$(OfficialVersion)-$(CDP_PATCH_NUMBER)-$(Revision)</Version>
</PropertyGroup>

<PropertyGroup>
<CodeAnalysisRuleSet>..\..\AzureAppConfigurationRules.ruleset</CodeAnalysisRuleSet>
<EnableNETAnalyzers>True</EnableNETAnalyzers>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ private async Task<Dictionary<KeyValueIdentifier, ConfigurationSetting>> LoadKey
ConfigurationSetting watchedKv = null;
try
{
await CallWithRequestTracing(async () => watchedKv = await client.GetConfigurationSettingAsync(watchedKey, watchedLabel, cancellationToken)).ConfigureAwait(false);
await CallWithRequestTracing(async () => watchedKv = await client.GetConfigurationSettingAsync(watchedKey, watchedLabel, cancellationToken).ConfigureAwait(false)).ConfigureAwait(false);
}
catch (RequestFailedException e) when (e.Status == (int)HttpStatusCode.NotFound)
{
Expand Down Expand Up @@ -871,10 +871,10 @@ private async Task ExecuteWithFailOverPolicyAsync(IEnumerable<ConfigurationClien
{
await ExecuteWithFailOverPolicyAsync<object>(clients, async (client) =>
{
await funcToExecute(client);
await funcToExecute(client).ConfigureAwait(false);
return null;
}, cancellationToken);
}, cancellationToken).ConfigureAwait(false);
}

private bool IsFailOverable(AggregateException ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<!-- Nuget Package Version Settings -->

<PropertyGroup>
<OfficialVersion>6.0.0</OfficialVersion>
<OfficialVersion>6.0.1</OfficialVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(CDP_PATCH_NUMBER)'!='' AND '$(CDP_BUILD_TYPE)'=='Official'">
Expand All @@ -51,5 +51,10 @@
<PropertyGroup Condition="'$(CDP_PATCH_NUMBER)'!='' AND '$(CDP_BUILD_TYPE)'!='Official'">
<Version>$(OfficialVersion)-$(CDP_PATCH_NUMBER)-$(Revision)</Version>
</PropertyGroup>

<PropertyGroup>
<CodeAnalysisRuleSet>..\..\AzureAppConfigurationRules.ruleset</CodeAnalysisRuleSet>
<EnableNETAnalyzers>True</EnableNETAnalyzers>
</PropertyGroup>

</Project>

0 comments on commit 022ba04

Please sign in to comment.