Skip to content

Conversation

@askpt
Copy link
Member

@askpt askpt commented Nov 2, 2025

Signed-off-by: André Silva 2493377+askpt@users.noreply.github.com

This PR

This pull request updates the .NET getting started tutorial to use the latest OpenFeature library patterns and dependency injection, improving clarity and aligning with modern best practices. The most important changes are grouped below:

Dependency Injection and Library Usage Updates:

  • Added installation instructions for the OpenFeature.Hosting NuGet package to support dependency injection and modern OpenFeature usage.
  • Updated provider registration to use builder.Services.AddOpenFeature with lambda configuration, replacing direct calls to Api.Instance.SetProviderAsync for both in-memory and flagd providers. [1] [2]

Code Modernization and API Usage:

  • Changed feature flag evaluation in route handlers to inject IFeatureClient via [FromServices], removing manual client instantiation and improving testability and code clarity. [1] [2]

Provider Integration Improvements:

  • Updated flagd provider integration to use OpenFeature.Contrib.Providers.Flagd.DependencyInjection and the .AddFlagdProvider() extension for simpler configuration. [1] [2]

askpt added 3 commits November 2, 2025 12:39
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
…ndpoint

Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
…dpoint

Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
@netlify
Copy link

netlify bot commented Nov 2, 2025

Deploy Preview for openfeature ready!

Name Link
🔨 Latest commit e8e531e
🔍 Latest deploy log https://app.netlify.com/projects/openfeature/deploys/690754dc0b9ac500089d17a1
😎 Deploy Preview https://deploy-preview-1289--openfeature.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

askpt added 2 commits November 2, 2025 12:54
… .NET SDK tutorial

Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
@askpt askpt marked this pull request as ready for review November 2, 2025 14:15
@askpt askpt requested review from a team as code owners November 2, 2025 14:15
@beeme1mr beeme1mr added this pull request to the merge queue Nov 3, 2025
Merged via the queue into open-feature:main with commit a797824 Nov 3, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants