CommunityToolkit.Aspire.GoFeatureFlag
13.1.1
Prefix Reserved
See the version list below for details.
dotnet add package CommunityToolkit.Aspire.GoFeatureFlag --version 13.1.1
NuGet\Install-Package CommunityToolkit.Aspire.GoFeatureFlag -Version 13.1.1
<PackageReference Include="CommunityToolkit.Aspire.GoFeatureFlag" Version="13.1.1" />
<PackageVersion Include="CommunityToolkit.Aspire.GoFeatureFlag" Version="13.1.1" />
<PackageReference Include="CommunityToolkit.Aspire.GoFeatureFlag" />
paket add CommunityToolkit.Aspire.GoFeatureFlag --version 13.1.1
#r "nuget: CommunityToolkit.Aspire.GoFeatureFlag, 13.1.1"
#:package CommunityToolkit.Aspire.GoFeatureFlag@13.1.1
#addin nuget:?package=CommunityToolkit.Aspire.GoFeatureFlag&version=13.1.1
#tool nuget:?package=CommunityToolkit.Aspire.GoFeatureFlag&version=13.1.1
CommunityToolkit.Aspire.GoFeatureFlag
Registers a GoFeatureFlagProvider in the DI container for connecting to a GO Feature Flag instance.
Getting started
Install the package
Install the .NET Aspire GO Feature Flag Client library with NuGet:
dotnet add package CommunityToolkit.Aspire.GoFeatureFlag
Usage example
In the Program.cs file of your project, call the AddGoFeatureFlagClient extension method to register a GoFeatureFlagProvider for use via the dependency injection container. The method takes a connection name parameter.
builder.AddGoFeatureFlagClient("goff");
Configuration
The .NET Aspire GO Feature Flag Client integration provides multiple options to configure the server connection based on the requirements and conventions of your project.
Use a connection string
When using a connection string from the ConnectionStrings configuration section, you can provide the name of the connection string when calling builder.AddGoFeatureFlagClient():
builder.AddGoFeatureFlagClient("goff");
And then the connection string will be retrieved from the ConnectionStrings configuration section:
{
"ConnectionStrings": {
"goff": "Endpoint=http://localhost:19530/"
}
}
Use configuration providers
The .NET Aspire GO Feature Flag Client integration supports Microsoft.Extensions.Configuration. It loads the GoFeatureFlagClientSettings from configuration by using the Aspire:GoFeatureFlag:Client key. Example appsettings.json that configures some of the options:
{
"Aspire": {
"GoFeatureFlag": {
"Client": {
"Endpoint": "http://localhost:19530/",
"MasterKey": "123456!@#$%"
}
}
}
}
Use inline delegates
Also you can pass the Action<GoFeatureFlagClientSettings> configureSettings delegate to set up some or all the options inline, for example to set the API key from code:
builder.AddGoFeatureFlagClient("goff", settings => settings.ProviderOptions.ApiKey = "123456!@#$%");
AppHost extensions
In your AppHost project, install the CommunityToolkit.Aspire.Hosting.GoFeatureFlag library with NuGet:
dotnet add package CommunityToolkit.Aspire.Hosting.GoFeatureFlag
Then, in the Program.cs file of AppHost, register a GO Feature Flag instance and consume the connection using the following methods:
var goff = builder.AddGoFeatureFlag("goff");
var myService = builder.AddProject<Projects.MyService>()
.WithReference(goff);
The WithReference method configures a connection in the MyService project named goff. In the Program.cs file of MyService, the GO Feature Flag connection can be consumed using:
builder.AddGoFeatureFlagClient("goff");
Then, in your service, inject GoFeatureFlagProvider and use it to interact with the GO Feature Flag API:
public class MyService(GoFeatureFlagProvider goFeatureFlagProvider)
{
// ...
}
Additional documentation
- https://github.com/thomaspoignant/go-feature-flag
- https://learn.microsoft.com/dotnet/aspire/community-toolkit/hosting-go-feature-flag
Feedback & contributing
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- AspNetCore.HealthChecks.Uris (>= 9.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.1)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.1)
- OpenFeature.Contrib.GOFeatureFlag (>= 0.2.1)
- OpenTelemetry.Extensions.Hosting (>= 1.12.0)
-
net8.0
- AspNetCore.HealthChecks.Uris (>= 9.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.1)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.1)
- OpenFeature.Contrib.GOFeatureFlag (>= 0.2.1)
- OpenTelemetry.Extensions.Hosting (>= 1.12.0)
-
net9.0
- AspNetCore.HealthChecks.Uris (>= 9.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.1)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.1)
- OpenFeature.Contrib.GOFeatureFlag (>= 0.2.1)
- OpenTelemetry.Extensions.Hosting (>= 1.12.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 13.1.2-beta.516 | 39 | 2/9/2026 |
| 13.1.2-beta.515 | 42 | 2/2/2026 |
| 13.1.2-beta.514 | 47 | 1/30/2026 |
| 13.1.2-beta.513 | 49 | 1/29/2026 |
| 13.1.2-beta.512 | 45 | 1/29/2026 |
| 13.1.2-beta.511 | 46 | 1/28/2026 |
| 13.1.2-beta.509 | 38 | 1/20/2026 |
| 13.1.2-beta.508 | 46 | 1/19/2026 |
| 13.1.2-beta.507 | 45 | 1/19/2026 |
| 13.1.2-beta.506 | 45 | 1/16/2026 |
| 13.1.2-beta.505 | 47 | 1/16/2026 |
| 13.1.2-beta.504 | 42 | 1/16/2026 |
| 13.1.1 | 264 | 1/16/2026 |
| 13.1.1-beta.502 | 44 | 1/16/2026 |
| 13.1.0 | 107 | 1/14/2026 |
| 13.1.0-beta.499 | 49 | 1/14/2026 |
| 13.0.1-beta.498 | 44 | 1/14/2026 |
| 13.0.1-beta.486 | 46 | 1/12/2026 |
| 13.0.1-beta.468 | 630 | 12/3/2025 |
| 13.0.1-beta.467 | 617 | 12/3/2025 |