{"id":21894895,"url":"https://github.com/featbit/openfeature-provider-dotnet-server","last_synced_at":"2026-03-07T15:32:12.229Z","repository":{"id":264624282,"uuid":"890746693","full_name":"featbit/openfeature-provider-dotnet-server","owner":"featbit","description":"An OpenFeature provider for the FeatBit .NET Server SDK","archived":false,"fork":false,"pushed_at":"2025-08-04T02:37:08.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-04T05:05:26.116Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/featbit.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,"zenodo":null}},"created_at":"2024-11-19T05:29:27.000Z","updated_at":"2025-08-04T02:36:42.000Z","dependencies_parsed_at":"2025-04-15T16:14:50.818Z","dependency_job_id":"1c8c7082-2347-4760-a3b8-468ea60bb119","html_url":"https://github.com/featbit/openfeature-provider-dotnet-server","commit_stats":null,"previous_names":["featbit/openfeature-provider-dotnet-server"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/featbit/openfeature-provider-dotnet-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/featbit%2Fopenfeature-provider-dotnet-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/featbit%2Fopenfeature-provider-dotnet-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/featbit%2Fopenfeature-provider-dotnet-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/featbit%2Fopenfeature-provider-dotnet-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/featbit","download_url":"https://codeload.github.com/featbit/openfeature-provider-dotnet-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/featbit%2Fopenfeature-provider-dotnet-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30219541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T14:02:48.375Z","status":"ssl_error","status_checked_at":"2026-03-07T14:02:43.192Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-28T13:29:23.151Z","updated_at":"2026-03-07T15:32:12.211Z","avatar_url":"https://github.com/featbit.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FeatBit OpenFeature Provider for .NET Server-Side SDK\n\n## Introduction\n\nThis is the [OpenFeature](https://github.com/open-feature/dotnet-sdk) provider for the\n[FeatBit .NET Server SDK](https://github.com/featbit/featbit-dotnet-sdk), for the 100% open-source feature flags\nmanagement platform [FeatBit](https://github.com/featbit/featbit).\n\n## Get Started\n\n### Installation\n\nThe latest stable version is available on [NuGet](https://www.nuget.org/packages/FeatBit.OpenFeature.ServerProvider/).\n\n```sh\ndotnet add package FeatBit.OpenFeature.ServerProvider\n```\n\n### Prerequisite\n\nBefore using the SDK, you need to obtain the environment secret and SDK URLs.\n\nFollow the documentation below to retrieve these values\n\n- [How to get the environment secret](https://docs.featbit.co/sdk/faq#how-to-get-the-environment-secret)\n- [How to get the SDK URLs](https://docs.featbit.co/sdk/faq#how-to-get-the-sdk-urls)\n\n### Quick Start\n\nThe following code demonstrates basic usage of FeatBit.OpenFeature.ServerProvider.\n\n```cs\nusing FeatBit.OpenFeature.ServerProvider;\nusing FeatBit.Sdk.Server;\nusing FeatBit.Sdk.Server.Options;\nusing OpenFeature;\nusing OpenFeature.Model;\n\n// setup SDK options\nvar options = new FbOptionsBuilder(\"\u003creplace-with-your-env-secret\u003e\")\n    .Event(new Uri(\"\u003creplace-with-your-event-url\u003e\"))\n    .Streaming(new Uri(\"\u003creplace-with-your-streaming-url\u003e\"))\n    .Build();\n\n// Creates a new client instance that connects to FeatBit with the custom option.\nvar fbClient = new FbClient(options);\n\n// use the FeatBit client with OpenFeature\nvar provider = new FeatBitProvider(fbClient);\nawait Api.Instance.SetProviderAsync(provider);\nvar client = Api.Instance.GetClient();\n\n// flag to be evaluated\nconst string flagKey = \"game-runner\";\n\n// create an evaluation context\nvar context = EvaluationContext.Builder().SetTargetingKey(\"anonymous\").Build();\n\n// evaluate a boolean flag for a given context\nvar boolVariation = await client.GetBooleanValueAsync(flagKey, defaultValue: false, context);\nConsole.WriteLine($\"flag '{flagKey}' returns {boolVariation} for {context.TargetingKey}\");\n\n// evaluate a boolean flag for a given context with evaluation detail\nvar boolVariationDetail = await client.GetBooleanDetailsAsync(flagKey, defaultValue: false, context);\nConsole.WriteLine(\n    $\"flag '{flagKey}' returns {boolVariationDetail.Value} for {context.TargetingKey}. \" +\n    $\"Reason: {boolVariationDetail.Reason}\"\n);\n\n// optionally track the event with a metric for experimentation\nvar trackingDetail = TrackingEventDetails.Builder().SetValue(1.0).Build();\nclient.Track(\"games-run\", context, trackingDetail);\n\n// shut down OpenFeature\nawait Api.Instance.ShutdownAsync();\n\n// close the client to ensure that all insights are sent out before the app exits\nawait fbClient.CloseAsync();\n```\n\n### Examples\n\n- [Console App](/examples/ConsoleApp/Program.cs)\n\n## Getting support\n\n- If you have a specific question about using this sdk, we encourage you\n  to [ask it in our slack](https://join.slack.com/t/featbit/shared_invite/zt-1ew5e2vbb-x6Apan1xZOaYMnFzqZkGNQ).\n- If you encounter a bug or would like to request a\n  feature, [submit an issue](https://github.com/featbit/openfeature-provider-dotnet-server/issues/new).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeatbit%2Fopenfeature-provider-dotnet-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeatbit%2Fopenfeature-provider-dotnet-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeatbit%2Fopenfeature-provider-dotnet-server/lists"}