rm.FeatureToggle
3.0.0-alpha3
See the version list below for details.
dotnet add package rm.FeatureToggle --version 3.0.0-alpha3
NuGet\Install-Package rm.FeatureToggle -Version 3.0.0-alpha3
<PackageReference Include="rm.FeatureToggle" Version="3.0.0-alpha3" />
<PackageVersion Include="rm.FeatureToggle" Version="3.0.0-alpha3" />
<PackageReference Include="rm.FeatureToggle" />
paket add rm.FeatureToggle --version 3.0.0-alpha3
#r "nuget: rm.FeatureToggle, 3.0.0-alpha3"
#:package rm.FeatureToggle@3.0.0-alpha3
#addin nuget:?package=rm.FeatureToggle&version=3.0.0-alpha3&prerelease
#tool nuget:?package=rm.FeatureToggle&version=3.0.0-alpha3&prerelease
Feature Toggle
Few dials for feature toggle.
PercentageDial
ToDial(percentage) returns true with a percentage probability. It has a dependency on Random which needs to be thread-safe. See thread-safe Random implementations here (nuget). percentage range is [0.01-100.00] (2 decimal places precision).
CountDial
ToDial(count) returns true for first count calls, and false after. It's useful to sample few calls before dialing with a percentage. It maintains an internal counter with a lock. Dialing count to 0 does not incur the lock perf hit.
CountThenPercentageDial
ToDial(count, percentage) returns true for first count calls, and then with a percentage probability. It uses CountDial and PercentageDial underneath the hood, and provides flexibility to sample few calls first and then dial with a percentage. Due to the lock perf hit (except when count is 0), it's better to eventually change to PercentageDial.
IdDial
ToDial(id, percentage) returns true if the calculated value of a string id ([0.01-100.00] and deterministic) is less than or equal to percentage. This dial makes the dialing a function of something (id) versus randomness. It's deterministic so IsDial(id, percentage) will keep returning true as long as the percentage is same or increasing. It will behave uniformly if the id values have high cardinality, and with no traffic clustering.
DateRangeDial
ToDial(startDate, endDate) returns true if the current date value is within the date range. If startDate > endDate, false is returned instead of throwing for convenience.
Probability
IsTrue(percentage) returns true with a percentage probability. It acts as a helper method, and is used internally by PercentageDial.
| 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. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- K4os.Hash.xxHash (>= 1.0.7)
- rm.Clock (>= 1.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on rm.FeatureToggle:
| Package | Downloads |
|---|---|
|
rm.DelegatingHandlers
Provides DelegatingHandlers. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.1.1 | 163 | 1/30/2024 |
| 3.1.0 | 72 | 1/30/2024 |
| 3.0.0 | 169 | 11/20/2023 |
| 3.0.0-alpha5 | 76 | 9/24/2023 |
| 3.0.0-alpha4 | 72 | 9/24/2023 |
| 3.0.0-alpha3 | 96 | 2/26/2023 |
| 3.0.0-alpha2 | 98 | 1/1/2023 |
| 3.0.0-alpha1 | 94 | 1/1/2023 |
| 3.0.0-alpha0 | 137 | 5/17/2022 |
| 2.3.1 | 103 | 9/24/2023 |
| 2.3.0 | 126 | 2/26/2023 |
| 2.2.1 | 126 | 2/26/2023 |
| 2.2.1-readme0 | 95 | 2/26/2023 |
| 2.2.0 | 284 | 3/9/2022 |
| 2.2.0-alpha0 | 120 | 3/9/2022 |
| 2.1.0-alpha0 | 149 | 9/25/2021 |
| 2.0.0 | 1,832 | 11/27/2021 |
| 2.0.0-alpha3 | 1,805 | 11/27/2021 |
| 2.0.0-alpha2 | 146 | 8/25/2021 |
| 2.0.0-alpha1 | 157 | 8/24/2021 |
| 2.0.0-alpha0 | 156 | 8/22/2021 |
| 1.1.2 | 20,734 | 11/9/2021 |
| 1.1.2-alpha1 | 140 | 11/9/2021 |
| 1.1.2-alpha0 | 153 | 11/9/2021 |
| 1.1.1 | 257 | 9/26/2021 |
| 1.1.1-alpha0 | 192 | 9/26/2021 |
| 1.1.0 | 178 | 9/25/2021 |
| 1.0.3 | 227 | 8/30/2021 |
| 1.0.3-alpha2 | 153 | 8/30/2021 |
| 1.0.3-alpha0 | 137 | 8/30/2021 |
| 1.0.2 | 214 | 8/22/2021 |
| 1.0.2-alpha1 | 186 | 8/21/2021 |
| 1.0.1 | 187 | 8/21/2021 |
| 1.0.0 | 228 | 5/9/2021 |
tag: v3.0.0-alpha3