DotNetCore.FeatureFlags 1.0.2-preview5

Quick and easy implementation of Feature Flags in .Net Core 3.0 applications

This is a prerelease version of DotNetCore.FeatureFlags.
Install-Package DotNetCore.FeatureFlags -Version 1.0.2-preview5
dotnet add package DotNetCore.FeatureFlags --version 1.0.2-preview5
<PackageReference Include="DotNetCore.FeatureFlags" Version="1.0.2-preview5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DotNetCore.FeatureFlags --version 1.0.2-preview5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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.
screenshot

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

FeatureFlags - additional information

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.
screenshot

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

FeatureFlags - additional information

Release Notes

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

  • .NETCoreApp 3.0

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.2-preview5 71 5/30/2019