GovBuilt.FeatureFlags.Abstraction 1.0.0

There is a newer version of this package available.
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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GovBuilt.FeatureFlags.Abstraction" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GovBuilt.FeatureFlags.Abstraction" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="GovBuilt.FeatureFlags.Abstraction" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GovBuilt.FeatureFlags.Abstraction --version 1.0.0
                    
#r "nuget: GovBuilt.FeatureFlags.Abstraction, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package GovBuilt.FeatureFlags.Abstraction@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GovBuilt.FeatureFlags.Abstraction&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=GovBuilt.FeatureFlags.Abstraction&version=1.0.0
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last Updated
2.0.1 140 6/22/2026
2.0.0 121 6/22/2026
1.0.6 120 6/22/2026
1.0.4 1,805 4/21/2026
1.0.3 142 4/16/2026
1.0.2 118 4/16/2026
1.0.1 125 4/14/2026
1.0.0 121 4/14/2026