{"id":22886311,"url":"https://github.com/rafalbielec/feature-switches","last_synced_at":"2026-04-15T15:43:30.369Z","repository":{"id":267968409,"uuid":"901579287","full_name":"rafalbielec/feature-switches","owner":"rafalbielec","description":"Example application which demonstrates how to use features switches / features flags in .NET 9.","archived":false,"fork":false,"pushed_at":"2024-12-15T13:50:21.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T23:18:24.046Z","etag":null,"topics":["dotnet","dotnet9","feature-flags","feature-switches","feature-toggles","net9"],"latest_commit_sha":null,"homepage":"https://rafalbielec.com/blog/02_feature_switches","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rafalbielec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-10T23:29:42.000Z","updated_at":"2024-12-15T13:50:45.000Z","dependencies_parsed_at":"2024-12-13T16:20:17.955Z","dependency_job_id":"2665b1b5-382d-42a0-b42a-26bd5b1ae03d","html_url":"https://github.com/rafalbielec/feature-switches","commit_stats":null,"previous_names":["rafalbielec/feature-switches"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafalbielec%2Ffeature-switches","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafalbielec%2Ffeature-switches/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafalbielec%2Ffeature-switches/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafalbielec%2Ffeature-switches/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafalbielec","download_url":"https://codeload.github.com/rafalbielec/feature-switches/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246522596,"owners_count":20791363,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dotnet","dotnet9","feature-flags","feature-switches","feature-toggles","net9"],"created_at":"2024-12-13T20:17:44.892Z","updated_at":"2026-04-15T15:43:25.332Z","avatar_url":"https://github.com/rafalbielec.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Feature switches / Feature flags\n\nThis is an example solution which demonstrates how to use features switches / features flags in .NET 9. The solution uses both the Microsoft approach to feature flags as well as the OpenFeature NuGet package which you can find here: [OpenFeature.dev](https://openfeature.dev).\n\n## The article\n\nThe blog article for this solution is located at [https://rafalbielec.com/blog/02_feature_switches](https://rafalbielec.com/blog/02_feature_switches).\n\n## API URLs\n\n- http://localhost:8080 // The API which uses the Microsoft.FeatureManagement NuGet package.\n- http://localhost:8000 // The API to provide flags for the OpenFeature client.\n- http://localhost:8001 // The client project which uses the custom OpenFeature API provider.\n- http://localhost:8080/openapi/v1.json // OpenAPI JSON spec for the FeatureSwitches project.\n- http://localhost:8001/openapi/v1.json // OpenAPI JSON spec for the OpenFeature client API.\n\n### How to run\n\n```sh\ncd src\ndotnet restore\ndotnet build\ndotnet run --project FeatureSwitches\ndotnet run --project OpenFeatureApp\ndotnet run --project OpenFeatureProvider\n```\n\n#### IL disassemblers to check compiler trimming\n\n[AvaloniaILSpy](https://github.com/icsharpcode/AvaloniaILSpy/releases)\n[IlDasm2](https://github.com/lextudio/dotnet-ildasm2)\n\n#### MultiRun helper tool to run multiple projects at once with one command\n\n```sh\ngit clone https://github.com/zacharyMcSweenManickchand/MultiRun.net.git\ncd MultiRun.net\ndotnet build -c Release \u0026\u0026 dotnet pack -c Release\ndotnet tool install --global --add-source ./nupkg mrn --version 1.0.0\nmrn .\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafalbielec%2Ffeature-switches","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafalbielec%2Ffeature-switches","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafalbielec%2Ffeature-switches/lists"}