Skip to content

Merge main to release/stable/v8 for version 8.2.0 #664

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 39 commits into from
May 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
c2e18d7
Adding allocation id
rossgrambo Oct 18, 2024
1c2c525
serialize with sorted keys
SamSadfa Oct 21, 2024
cb4e615
use string empty
SamSadfa Oct 21, 2024
49ef1fc
nit
SamSadfa Oct 21, 2024
86fde17
rename ff id to TelemetryVariantPercentile
SamSadfa Oct 21, 2024
c191d7f
add more values
SamSadfa Oct 21, 2024
603cd0f
dotnet format
SamSadfa Oct 21, 2024
35386d0
Version bump
rossgrambo Oct 23, 2024
51d4ad7
Merge pull request #600 from Azure/rossgrambo/allocation_id
samsadsam Oct 23, 2024
0619626
Merge branch 'preview' into rossgrambo/merge-main-to-preview
rossgrambo Oct 23, 2024
9216437
Merge pull request #604 from Azure/rossgrambo/merge-main-to-preview
rossgrambo Oct 23, 2024
dbadbb9
Merge branch 'preview' into rossgrambo/version-bump-8.1.0-preview
rossgrambo Oct 23, 2024
4b5e523
Merge pull request #603 from Azure/rossgrambo/version-bump-8.1.0-preview
rossgrambo Oct 23, 2024
5e6a012
Add `RegisterAll` API to enable monitoring collections of key-values …
amerjusupovic Jan 22, 2025
6dc9ae2
Give the users the ability to have control over ConfigurationClient i…
amerjusupovic Feb 6, 2025
6da33d2
merge with conflicts
samsadsam Mar 12, 2025
4ab2dda
fix merge conflict errors
samsadsam Mar 12, 2025
d5dc83d
Merge branch 'main' into user/samisadfa/merge-main-to-preview
samsadsam Mar 18, 2025
c2e3558
revert versions
samsadsam Mar 18, 2025
258452d
merge with main
samsadsam Mar 18, 2025
573320e
Merge pull request #636 from Azure/user/samisadfa/merge-main-to-preview
samsadsam Mar 18, 2025
d7f5939
upgrade to 8.2.0-preview (#638)
samsadsam Mar 18, 2025
300f475
Merge from main
rossgrambo Apr 17, 2025
8fdade8
Merge branch 'main' into rossgrambo/merging-main-to-preview
rossgrambo Apr 18, 2025
d7a0331
Merge pull request #649 from Azure/rossgrambo/merging-main-to-preview
rossgrambo Apr 22, 2025
bf8b06b
Add activity source to allow OpenTelemetry to collect tracing (#645)
zhiyuanliang-ms Apr 24, 2025
d0d14a5
Removed FeatureFlagId
rossgrambo Apr 25, 2025
4e1f09f
Merge pull request #655 from Azure/rossgrambo/featureFlagId
rossgrambo Apr 29, 2025
bf7d1bc
Merge branch 'preview' of https://github.com/Azure/AppConfiguration-D…
amerjusupovic May 1, 2025
e09cb23
Add support for filtering by tags (#637)
amerjusupovic May 2, 2025
17ed39c
Clarify client factory comment (#660)
amerjusupovic May 7, 2025
22af6e2
Shorten default timeout of individual calls to backend (#657)
amerjusupovic May 9, 2025
7f1c926
Merge branch 'main' of https://github.com/Azure/AppConfiguration-Dotn…
amerjusupovic May 9, 2025
874dad5
Merge branch 'preview' of https://github.com/Azure/AppConfiguration-D…
amerjusupovic May 9, 2025
a2c0bee
renormalize options
amerjusupovic May 9, 2025
b62a34a
Merge pull request #659 from Azure/ajusupovic/merge-preview-to-main
amerjusupovic May 12, 2025
138a760
update package versions to 8.2.0 (#662)
amerjusupovic May 13, 2025
f2cbaca
Add .gitattributes and normalize line endings (#661)
amerjusupovic May 13, 2025
8b883cc
update to 2023-11-01 (#663)
amerjusupovic May 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# If there are abnormal line endings in any file, run "git add --renormalize <file_name>",
# review the changes, and commit them to fix the line endings.
* text=auto
452 changes: 226 additions & 226 deletions NOTICE

Large diffs are not rendered by default.

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

<PropertyGroup>
<OfficialVersion>8.1.2</OfficialVersion>
<OfficialVersion>8.2.0</OfficialVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(CDP_PATCH_NUMBER)'!='' AND '$(CDP_BUILD_TYPE)'=='Official'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<!-- Nuget Package Version Settings -->

<PropertyGroup>
<OfficialVersion>8.1.2</OfficialVersion>
<OfficialVersion>8.2.0</OfficialVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(CDP_PATCH_NUMBER)'!='' AND '$(CDP_BUILD_TYPE)'=='Official'">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
//
using Azure.Core;
using Azure.Data.AppConfiguration;
using Microsoft.Extensions.Azure;
using System;
using System.Collections.Generic;
using System.Linq;

namespace Microsoft.Extensions.Configuration.AzureAppConfiguration
{
internal class AzureAppConfigurationClientFactory : IAzureClientFactory<ConfigurationClient>
{
private readonly ConfigurationClientOptions _clientOptions;

private readonly TokenCredential _credential;
private readonly IEnumerable<string> _connectionStrings;

public AzureAppConfigurationClientFactory(
IEnumerable<string> connectionStrings,
ConfigurationClientOptions clientOptions)
{
if (connectionStrings == null || !connectionStrings.Any())
{
throw new ArgumentNullException(nameof(connectionStrings));
}

_connectionStrings = connectionStrings;

_clientOptions = clientOptions ?? throw new ArgumentNullException(nameof(clientOptions));
}

public AzureAppConfigurationClientFactory(
TokenCredential credential,
ConfigurationClientOptions clientOptions)
{
_credential = credential ?? throw new ArgumentNullException(nameof(credential));
_clientOptions = clientOptions ?? throw new ArgumentNullException(nameof(clientOptions));
}

public ConfigurationClient CreateClient(string endpoint)
{
if (string.IsNullOrEmpty(endpoint))
{
throw new ArgumentNullException(nameof(endpoint));
}

if (!Uri.TryCreate(endpoint, UriKind.Absolute, out Uri uriResult))
{
throw new ArgumentException("Invalid host URI.");
}

if (_credential != null)
{
return new ConfigurationClient(uriResult, _credential, _clientOptions);
}

string connectionString = _connectionStrings.FirstOrDefault(cs => ConnectionStringUtils.Parse(cs, ConnectionStringUtils.EndpointSection) == endpoint);

//
// fallback to the first connection string
if (connectionString == null)
{
string id = ConnectionStringUtils.Parse(_connectionStrings.First(), ConnectionStringUtils.IdSection);
string secret = ConnectionStringUtils.Parse(_connectionStrings.First(), ConnectionStringUtils.SecretSection);

connectionString = ConnectionStringUtils.Build(uriResult, id, secret);
}

return new ConfigurationClient(connectionString, _clientOptions);
}
}
}
Loading