From 8198f660e4082f8754ae4569109f3560223719cd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 26 Jun 2026 05:44:17 +0000 Subject: [PATCH 1/4] Add Microsoft.FeatureManagement 4.6.0 release notes --- releaseNotes/Microsoft.Featuremanagement.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/releaseNotes/Microsoft.Featuremanagement.md b/releaseNotes/Microsoft.Featuremanagement.md index 6f6e6b60..cffc72e8 100644 --- a/releaseNotes/Microsoft.Featuremanagement.md +++ b/releaseNotes/Microsoft.Featuremanagement.md @@ -2,6 +2,20 @@ [Source code][source_code] | [Package (NuGet)][package] | [Samples][samples] | [Product documentation][docs] +## 4.6.0 - June 26, 2026 + +### Enhancements + +* Added support for resolving variant service implementations through keyed dependency injection. When you register implementations as keyed services using the variant name as the key, the variant service provider resolves only the implementation matching the assigned variant, so the other implementations are no longer instantiated up front. This enables lazy, on-demand instantiation for scenarios where each implementation has its own dependencies and configuration. Existing non-keyed registrations continue to work unchanged. [#564](https://github.com/microsoft/FeatureManagement-Dotnet/issues/564) + + ``` C# + builder.Services.AddKeyedSingleton("DefaultCalculator"); + builder.Services.AddKeyedSingleton("RemoteCalculator"); + + builder.Services.AddFeatureManagement() + .WithVariantService("Calculator"); + ``` + ## 4.5.0 - April 23, 2026 ### Enhancements From 9d4ce74eeb20dec27016c78f1add76926f1748d7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 26 Jun 2026 07:11:34 +0000 Subject: [PATCH 2/4] Simplify 4.6.0 keyed DI release note wording --- releaseNotes/Microsoft.Featuremanagement.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releaseNotes/Microsoft.Featuremanagement.md b/releaseNotes/Microsoft.Featuremanagement.md index cffc72e8..62fc61cb 100644 --- a/releaseNotes/Microsoft.Featuremanagement.md +++ b/releaseNotes/Microsoft.Featuremanagement.md @@ -6,7 +6,7 @@ ### Enhancements -* Added support for resolving variant service implementations through keyed dependency injection. When you register implementations as keyed services using the variant name as the key, the variant service provider resolves only the implementation matching the assigned variant, so the other implementations are no longer instantiated up front. This enables lazy, on-demand instantiation for scenarios where each implementation has its own dependencies and configuration. Existing non-keyed registrations continue to work unchanged. [#564](https://github.com/microsoft/FeatureManagement-Dotnet/issues/564) +* Added support for resolving variant service implementations through keyed dependency injection. This enables lazy, on-demand instantiation for scenarios where each implementation has its own dependencies and configuration. [#564](https://github.com/microsoft/FeatureManagement-Dotnet/issues/564) ``` C# builder.Services.AddKeyedSingleton("DefaultCalculator"); From 08e8e28a3d3cee885a746a987653b13fdc5002c5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 26 Jun 2026 07:34:07 +0000 Subject: [PATCH 3/4] Remove 4.6.0 release note code snippet --- releaseNotes/Microsoft.Featuremanagement.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/releaseNotes/Microsoft.Featuremanagement.md b/releaseNotes/Microsoft.Featuremanagement.md index 62fc61cb..93df7b31 100644 --- a/releaseNotes/Microsoft.Featuremanagement.md +++ b/releaseNotes/Microsoft.Featuremanagement.md @@ -8,14 +8,6 @@ * Added support for resolving variant service implementations through keyed dependency injection. This enables lazy, on-demand instantiation for scenarios where each implementation has its own dependencies and configuration. [#564](https://github.com/microsoft/FeatureManagement-Dotnet/issues/564) - ``` C# - builder.Services.AddKeyedSingleton("DefaultCalculator"); - builder.Services.AddKeyedSingleton("RemoteCalculator"); - - builder.Services.AddFeatureManagement() - .WithVariantService("Calculator"); - ``` - ## 4.5.0 - April 23, 2026 ### Enhancements From 82b3fb518b0b8cfeacb4224b3ff22d392bdab3bc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 26 Jun 2026 07:38:41 +0000 Subject: [PATCH 4/4] Add 4.6.0 related FeatureManagement release notes --- releaseNotes/Microsoft.Featuremanagement.AspNetCore.md | 4 ++++ ...crosoft.Featuremanagement.Telemetry.ApplicationInsights.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/releaseNotes/Microsoft.Featuremanagement.AspNetCore.md b/releaseNotes/Microsoft.Featuremanagement.AspNetCore.md index bad4bd88..7d4af041 100644 --- a/releaseNotes/Microsoft.Featuremanagement.AspNetCore.md +++ b/releaseNotes/Microsoft.Featuremanagement.AspNetCore.md @@ -2,6 +2,10 @@ [Source code][source_code] | [Package (NuGet)][package] | [Samples][samples] | [Product documentation][docs] +## 4.6.0 - June 26, 2026 + +* Updated `Microsoft.FeatureManagement` reference to `4.6.0`. See the [release notes](./Microsoft.Featuremanagement.md) for more information on the changes. + ## 4.5.0 - April 23, 2026 * Updated `Microsoft.FeatureManagement` reference to `4.5.0`. See the [release notes](./Microsoft.Featuremanagement.md) for more information on the changes. diff --git a/releaseNotes/Microsoft.Featuremanagement.Telemetry.ApplicationInsights.md b/releaseNotes/Microsoft.Featuremanagement.Telemetry.ApplicationInsights.md index 4a769409..19becebb 100644 --- a/releaseNotes/Microsoft.Featuremanagement.Telemetry.ApplicationInsights.md +++ b/releaseNotes/Microsoft.Featuremanagement.Telemetry.ApplicationInsights.md @@ -2,6 +2,10 @@ [Source code][source_code] | [Package (NuGet)][package] | [Samples][samples] | [Product documentation][docs] +## 4.6.0 - June 26, 2026 + +* Updated `Microsoft.FeatureManagement` reference to `4.6.0`. See the [release notes](./Microsoft.Featuremanagement.md) for more information on the changes. + ## 4.5.0 - April 23, 2026 * Updated `Microsoft.FeatureManagement` reference to `4.5.0`. See the [release notes](./Microsoft.Featuremanagement.md) for more information on the changes.