ConfigurationModelFactory.FeatureFlagAllocation Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines how to allocate variants based on context.
public static Azure.Data.AppConfiguration.FeatureFlagAllocation FeatureFlagAllocation(string defaultWhenDisabled = default, string defaultWhenEnabled = default, System.Collections.Generic.IEnumerable<Azure.Data.AppConfiguration.PercentileAllocation> percentile = default, System.Collections.Generic.IEnumerable<Azure.Data.AppConfiguration.UserAllocation> user = default, System.Collections.Generic.IEnumerable<Azure.Data.AppConfiguration.GroupAllocation> group = default, string seed = default);
static member FeatureFlagAllocation : string * string * seq<Azure.Data.AppConfiguration.PercentileAllocation> * seq<Azure.Data.AppConfiguration.UserAllocation> * seq<Azure.Data.AppConfiguration.GroupAllocation> * string -> Azure.Data.AppConfiguration.FeatureFlagAllocation
Public Shared Function FeatureFlagAllocation (Optional defaultWhenDisabled As String = Nothing, Optional defaultWhenEnabled As String = Nothing, Optional percentile As IEnumerable(Of PercentileAllocation) = Nothing, Optional user As IEnumerable(Of UserAllocation) = Nothing, Optional group As IEnumerable(Of GroupAllocation) = Nothing, Optional seed As String = Nothing) As FeatureFlagAllocation
Parameters
- defaultWhenDisabled
- String
The default variant to use when disabled.
- defaultWhenEnabled
- String
The default variant to use when enabled but not allocated.
- percentile
- IEnumerable<PercentileAllocation>
Allocates percentiles to variants.
- user
- IEnumerable<UserAllocation>
Allocates users to variants.
- group
- IEnumerable<GroupAllocation>
Allocates groups to variants.
- seed
- String
The seed used for random allocation.
Returns
A new FeatureFlagAllocation instance for mocking.