DotNetCore.FeatureFlags
1.0.2-preview5
See the version list below for details.
dotnet add package DotNetCore.FeatureFlags --version 1.0.2-preview5
NuGet\Install-Package DotNetCore.FeatureFlags -Version 1.0.2-preview5
<PackageReference Include="DotNetCore.FeatureFlags" Version="1.0.2-preview5" />
paket add DotNetCore.FeatureFlags --version 1.0.2-preview5
#r "nuget: DotNetCore.FeatureFlags, 1.0.2-preview5"
// Install DotNetCore.FeatureFlags as a Cake Addin
#addin nuget:?package=DotNetCore.FeatureFlags&version=1.0.2-preview5&prerelease
// Install DotNetCore.FeatureFlags as a Cake Tool
#tool nuget:?package=DotNetCore.FeatureFlags&version=1.0.2-preview5&prerelease
Introduction
Quick and easy implementation of FeatureFlags in .Net Core applications
In the code you will see a sample to implement FeatureFlags on your .NET Core 3.x applications.
This implementation is quick easy, and you will have to implement the IToggleService only to manage the Toggles.
How-To
In the next image you will see the projet's class diagram.
You should know that:
- The class ToggleSettings has the properties of the Toggle (Feature, Description, IsEnabled)
- Feature is the name or key of the Toggle
- Description is the description of the Toggle (empty by default)
- IsEnabled is the value of the Toggle (on/off) where off is the default value
You will have to take two actions on your code only:
- Implement the IToggleService interface to manage the Toggles (load, get, release and refresh the Toggles) from the source where you have them.
- Use the Toggle class on your app to manage the Toggles and know if a Toggle is enabled or not.
Implement the library is quick and easy as you can see.
NuGet Package
You can install the Nuget Package of DotNEtCore.FeatureFlags from here
Note: the version of this package is a preview version to align it with the .Net Core 3 version.
References
FeatureToggle of Martin Fowler
Explore how to progressively expose your features in production for some or all users
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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. |
.NET Core | netcoreapp3.0 is compatible. netcoreapp3.1 was computed. |
-
.NETCoreApp 3.0
- No dependencies.
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 |
---|---|---|
3.1.0 | 1,379 | 10/29/2019 |
GetToggleSettings method has been renamed as GetAllToggleSettings
GetToggleSettingsBy method has been added for a better performance when we want to get the ToggleSettings of a feature