FeatureMasterX 9.0.1

dotnet add package FeatureMasterX --version 9.0.1
                    
NuGet\Install-Package FeatureMasterX -Version 9.0.1
                    
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="FeatureMasterX" Version="9.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FeatureMasterX" Version="9.0.1" />
                    
Directory.Packages.props
<PackageReference Include="FeatureMasterX" />
                    
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 FeatureMasterX --version 9.0.1
                    
#r "nuget: FeatureMasterX, 9.0.1"
                    
#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.
#addin nuget:?package=FeatureMasterX&version=9.0.1
                    
Install FeatureMasterX as a Cake Addin
#tool nuget:?package=FeatureMasterX&version=9.0.1
                    
Install FeatureMasterX as a Cake Tool

FeatureMasterX

Overview

FeatureMasterX is a powerful and easy-to-use extension for Microsoft's FeatureManagement library. It simplifies feature toggling by allowing more intuitive configurations for users, accounts, and other contexts.

🔹 Key Features

  • Reduces boilerplate code with intuitive APIs.
  • Supports user-based and global feature flags.
  • Optimized for scalability and flexibility.

ListCheckFeatureFilter

The first implementation, ListCheckFeatureFilter, allows you to group multiple features under ListCheck. It evaluates access based on the EnabledFor property:

  • If EnabledFor is set to ALL, always return true.
  • Otherwise, only the specified can access the feature.

Configuration Example

{
  "FeatureManagement": {
    "ListCheck": {
      "NewFeature": {
        "EnabledFor": [ "user1@example.com", "admin@example.com" ]
      },
      "AllFeature": {
        "EnabledFor": [ "ALL" ]
      }
    }
  }
}

Installation

Install-Package FeatureMasterX

Usage

Register in services


builder.AddFeatureMasterX();

var featureManager = services.BuildServiceProvider().GetRequiredService<IFeatureManager>();
if (await featureManager.IsEnabledAsync("NewFeature", "user10@example.com"))
{
    // Feature is enabled for the current user
}

License

This project is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
9.0.1 102 2 months ago
9.0.0 101 2 months ago
8.0.0 87 2 months ago
6.0.0 92 2 months ago

9.0.1
     - Feature: Multitargets
9.0.0
- Feature: Port in NET 9.0 and add Package Icon.
8.0.0
- Feature: Port in NET 8.0
6.0.0
- Feature: Implement the NuGet Package to use Feature Management and make it easier to use for list.