johnduhart-nuget-ci - Toggled 0.3.0-unstable0008
A Feature Toggle Library for .NET
PM> Install-Package Toggled -Version 0.3.0-unstable0008 -Source https://www.myget.org/F/johnduhart-nuget-ci/api/v3/index.json
> nuget.exe install Toggled -Version 0.3.0-unstable0008 -Source https://www.myget.org/F/johnduhart-nuget-ci/api/v3/index.json
> dotnet add package Toggled --version 0.3.0-unstable0008 --source https://www.myget.org/F/johnduhart-nuget-ci/api/v3/index.json
source https://www.myget.org/F/johnduhart-nuget-ci/api/v3/index.json
nuget Toggled ~> 0.3.0-unstable0008
Copy to clipboard
> choco install Toggled --version 0.3.0-unstable0008 --source https://www.myget.org/F/johnduhart-nuget-ci/api/v2
Import-Module PowerShellGet
Register-PSRepository -Name "johnduhart-nuget-ci" -SourceLocation "https://www.myget.org/F/johnduhart-nuget-ci/api/v2"
Install-Module -Name "Toggled" -RequiredVersion "0.3.0-unstable0008" -Repository "johnduhart-nuget-ci" -AllowPreRelease
Copy to clipboard
Toggled
Feature toggles for .NET
Branch | AppVeyor | CodeCov |
---|---|---|
master | ||
develop |
Usage
Create and set your context:
Feature.Context = new FeatureContext(new FeatureTogglerProvider(
new AppSettingsToggler(),
new DefaultValueToggler()));
Create a new feature:
IFeature MyFeature = FeatureBuilder.Create("MyFeature")
.Description("This is my feature.")
.WithDefaultValue(false)
.Build();
And then check to see if it's enabled.
if (Feature.IsEnabled(MyFeature))
{
// Feature code here
}
- .NETFramework 4.5: 4.5.0.0
OwnersJohn Du Hart |
AuthorsJohn Du Hart V |
Project URLhttps://github.com/johnduhart/toggled |
LicenseMIT |
TagsFeature Toggle |
Info89 total downloads |
0 downloads for version 0.3.0-unstable0008 |
Download (6.48 KB) |
Found on the current feed only |
Package history
Version | Size | Last updated | Downloads | Mirrored? | |||
---|---|---|---|---|---|---|---|
0.3.0-unstable0008 | 6.48 KB | Thu, 23 Jun 2016 18:41:36 GMT | 0 | ||||
0.3.0-unstable0007 | 6.48 KB | Thu, 23 Jun 2016 18:37:04 GMT | 89 | ||||
0.3.0-unstable0006 | 6.48 KB | Wed, 22 Jun 2016 01:37:31 GMT | 0 | ||||
0.3.0-unstable0005 | 6.04 KB | Tue, 21 Jun 2016 20:09:01 GMT | 0 | ||||
0.3.0-unstable0004 | 6.04 KB | Tue, 21 Jun 2016 19:49:18 GMT | 0 | ||||
0.2.0-unstable0012 | 5.79 KB | Mon, 20 Jun 2016 19:09:43 GMT | 0 | ||||
0.2.0-unstable0011 | 5.78 KB | Mon, 20 Jun 2016 19:00:16 GMT | 0 | ||||
0.2.0-unstable0009 | 5.72 KB | Mon, 20 Jun 2016 18:50:03 GMT | 0 | ||||
0.2.0-unstable0006 | 5.59 KB | Sun, 19 Jun 2016 23:41:54 GMT | 0 | ||||
0.2.0-unstable0005 | 5.35 KB | Sun, 19 Jun 2016 17:49:12 GMT | 0 |