GovBuilt.FeatureFlags.Abstraction
1.0.0
See the version list below for details.
dotnet add package GovBuilt.FeatureFlags.Abstraction --version 1.0.0
NuGet\Install-Package GovBuilt.FeatureFlags.Abstraction -Version 1.0.0
<PackageReference Include="GovBuilt.FeatureFlags.Abstraction" Version="1.0.0" />
<PackageVersion Include="GovBuilt.FeatureFlags.Abstraction" Version="1.0.0" />
<PackageReference Include="GovBuilt.FeatureFlags.Abstraction" />
paket add GovBuilt.FeatureFlags.Abstraction --version 1.0.0
#r "nuget: GovBuilt.FeatureFlags.Abstraction, 1.0.0"
#:package GovBuilt.FeatureFlags.Abstraction@1.0.0
#addin nuget:?package=GovBuilt.FeatureFlags.Abstraction&version=1.0.0
#tool nuget:?package=GovBuilt.FeatureFlags.Abstraction&version=1.0.0
GovBuilt.FeatureFlags.Abstraction
Private package — publish to the GovBuilt private NuGet feed only. Do NOT publish to nuget.org.
Helper library providing IFeatureFlagHelper, FeatureFlagHelper, and FeatureFlagSetting for consuming per-tenant feature flags across all GovBuilt modules and applications.
Installation
<PackageReference Include="GovBuilt.FeatureFlags.Abstraction" Version="1.0.0" />
Requires GovBuilt.FeatureFlags module to be enabled on the tenant (it registers IFeatureFlagHelper in the OC tenant DI container via its Startup.cs).
Usage
Inject IFeatureFlagHelper anywhere in your module:
public class MyService(IFeatureFlagHelper flags)
{
public async Task DoWorkAsync()
{
if (await flags.IsEnabledAsync(f => f.IsAdvancedFormFileUpload))
{
// feature is enabled for this tenant
}
// or fetch the full settings object
var settings = await flags.GetAsync();
}
}
API
| Member | Description |
|---|---|
IFeatureFlagHelper.GetAsync() |
Returns the full FeatureFlagSetting for the current tenant |
IFeatureFlagHelper.IsEnabledAsync(f => f.IsXxx) |
Returns true if the selected flag is enabled |
FeatureFlagSetting |
POCO model — single source of truth for all flags |
Publishing (Private Feed)
dotnet pack src/GovBuilt.Helpers/GovBuilt.FeatureFlags.Abstraction/GovBuilt.FeatureFlags.Abstraction.csproj -c Release -o ./artifacts
dotnet nuget push ./artifacts/GovBuilt.FeatureFlags.Abstraction.*.nupkg --source GovBuiltFeed --api-key az
| 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 was computed. 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 was computed. 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. |
-
net8.0
- OrchardCore.Settings (>= 2.2.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on GovBuilt.FeatureFlags.Abstraction:
| Package | Downloads |
|---|---|
|
GovBuilt.FeatureFlags
Orchard Core module that stores and manages per-tenant feature flag settings via Orchard Core's ISiteService. Provides an admin UI for toggling flags per tenant and registers IFeatureFlagHelper for consumption across GovBuilt modules. |
|
|
GovBuilt.FeatureFlags.Tenants
Orchard Core module that provides a cross-tenant admin UI for managing feature flags across all running tenants from a single page. Loads and saves settings in parallel with capped concurrency, isolates per-tenant errors, and auto-enables GovBuilt.FeatureFlags on any tenant where a flag is turned on. |
GitHub repositories
This package is not used by any popular GitHub repositories.