Skip to content

feat: Add .NET OpenFeature server provider examples#3

Merged
jsonbailey merged 1 commit into
mainfrom
jb/sdk-2562/openfeature-server-provider
Jul 24, 2026
Merged

feat: Add .NET OpenFeature server provider examples#3
jsonbailey merged 1 commit into
mainfrom
jb/sdk-2562/openfeature-server-provider

Conversation

@jsonbailey

@jsonbailey jsonbailey commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Migrates the example from launchdarkly/hello-openfeature-dotnet-server into examples-dotnet, following the EXAM layout.

Layout

openfeature-server-provider/
├── README.md                    # index (Getting Started)
└── getting-started/             # Flag Retrieval
    ├── HelloOpenFeatureDotnet.csproj
    ├── Hello.cs
    ├── README.md
    └── NOTICE                   # Copyright 2022 (from the old repo)
  • Partition named after the package (LaunchDarkly.OpenFeature.ServerProvideropenfeature-server-provider/).
  • Modernized to net8.0 only — the original multi-targeted net471;net6.0;net8.0; trimmed to net8.0 to align with the other examples (we don't publish these, so no broad TFM coverage needed).
  • Root README gains the OpenFeature row; per-example NOTICE carries the old repo's 2022 copyright; BOM stripped.
  • Verified: dotnet build passes.

Notes

  • Build CI: this example is auto-covered by build.yml's glob once feat: Add .NET Server AI SDK examples #2 (which introduces build.yml) merges. Verified the build locally in the meantime.
  • The old repo ran the example via verify-hello-app (server key); extending verify-hello.yml to run it too can be a follow-up.

Part of SDK-2559. Closes the migration portion of SDK-2562 (old-repo README repoint + Terraform archive tracked separately on that ticket).

Jira: SDK-2562


Note

Low Risk
Documentation and sample code only, plus CI; no changes to shipped SDK behavior or production paths.

Overview
Adds openfeature-server-provider/ with a net8.0 console sample migrated from the old hello repo: it wires LaunchDarkly.OpenFeature.ServerProvider into OpenFeature, evaluates a boolean flag from env (LAUNCHDARKLY_SDK_KEY, optional LAUNCHDARKLY_FLAG_KEY), and shuts down cleanly for analytics.

Documents the new partition in the root SDKs table and adds partition/getting-started READMEs plus NOTICE (2022 copyright).

Introduces .github/workflows/openfeature-server-provider.yml to restore/build on Ubuntu and Windows and run the sample via verify-hello-app with a server SDK key (OIDC).

Reviewed by Cursor Bugbot for commit c7569ee. Bugbot is set up for automated code reviews on this repo. Configure here.

@jsonbailey
jsonbailey force-pushed the jb/sdk-2562/openfeature-server-provider branch from fe50d54 to a8062f7 Compare June 18, 2026 15:56
@jsonbailey

Copy link
Copy Markdown
Contributor Author

Updated to per-slice CI: this PR now includes its own path-filtered openfeature-server-provider.yml that builds only the openfeature-server-provider/ examples. This supersedes the earlier note about build CI arriving via #2's build.yml.

@jsonbailey
jsonbailey force-pushed the jb/sdk-2562/openfeature-server-provider branch from a8062f7 to 17ccb1a Compare June 18, 2026 17:03
@jsonbailey
jsonbailey marked this pull request as ready for review June 18, 2026 17:38
@jsonbailey
jsonbailey requested a review from a team as a code owner June 18, 2026 17:38
Migrates the example from launchdarkly/hello-openfeature-dotnet-server into the
openfeature-server-provider/ partition following the EXAM layout: getting-started
Flag Retrieval example, partition README index, per-example NOTICE (2022), and the
root README SDK row. Modernized to target net8.0 only (dropped net471/net6.0) to
align with the other examples. Sourced from hello-openfeature-dotnet-server (SDK-2562).
@jsonbailey
jsonbailey force-pushed the jb/sdk-2562/openfeature-server-provider branch from 17ccb1a to c7569ee Compare July 22, 2026 20:53
@jsonbailey
jsonbailey merged commit 5772f73 into main Jul 24, 2026
6 checks passed
@jsonbailey
jsonbailey deleted the jb/sdk-2562/openfeature-server-provider branch July 24, 2026 17:05
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