ข้ามไปยังเนื้อหา

Class FeatureFlagTargetingSettings

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll

Describes configuration-driven targeting constraints for one feature flag.

public sealed class FeatureFlagTargetingSettings

objectFeatureFlagTargetingSettings

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

FeatureFlagTargetingSettings(IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?)

Section titled “ FeatureFlagTargetingSettings(IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?)”

Creates feature-flag targeting settings.

public FeatureFlagTargetingSettings(IReadOnlyList<string>? includedModuleIds = null, IReadOnlyList<string>? excludedModuleIds = null, IReadOnlyList<string>? includedBehaviorIds = null, IReadOnlyList<string>? excludedBehaviorIds = null, IReadOnlyList<string>? includedCapabilityKeys = null, IReadOnlyList<string>? excludedCapabilityKeys = null, IReadOnlyList<string>? includedTransportIds = null, IReadOnlyList<string>? excludedTransportIds = null, IReadOnlyList<string>? includedEnvironmentNames = null, IReadOnlyList<string>? excludedEnvironmentNames = null, IReadOnlyList<string>? includedTenantIds = null, IReadOnlyList<string>? excludedTenantIds = null, IReadOnlyList<string>? includedSubjectIds = null, IReadOnlyList<string>? excludedSubjectIds = null, IReadOnlyList<string>? includedTags = null, IReadOnlyList<string>? excludedTags = null)

includedModuleIds IReadOnlyList<string>?

The explicitly included module identifiers.

excludedModuleIds IReadOnlyList<string>?

The explicitly excluded module identifiers.

includedBehaviorIds IReadOnlyList<string>?

The explicitly included behavior identifiers.

excludedBehaviorIds IReadOnlyList<string>?

The explicitly excluded behavior identifiers.

includedCapabilityKeys IReadOnlyList<string>?

The explicitly included capability keys.

excludedCapabilityKeys IReadOnlyList<string>?

The explicitly excluded capability keys.

includedTransportIds IReadOnlyList<string>?

The explicitly included transport identifiers.

excludedTransportIds IReadOnlyList<string>?

The explicitly excluded transport identifiers.

includedEnvironmentNames IReadOnlyList<string>?

The explicitly included environment names.

excludedEnvironmentNames IReadOnlyList<string>?

The explicitly excluded environment names.

includedTenantIds IReadOnlyList<string>?

The explicitly included tenant identifiers.

excludedTenantIds IReadOnlyList<string>?

The explicitly excluded tenant identifiers.

includedSubjectIds IReadOnlyList<string>?

The explicitly included subject identifiers.

excludedSubjectIds IReadOnlyList<string>?

The explicitly excluded subject identifiers.

includedTags IReadOnlyList<string>?

The explicitly included descriptive tags.

excludedTags IReadOnlyList<string>?

The explicitly excluded descriptive tags.

Gets an empty feature-flag targeting settings instance.

public static FeatureFlagTargetingSettings Empty { get; }

FeatureFlagTargetingSettings

Gets the explicitly excluded behavior identifiers.

public IReadOnlyList<string> ExcludedBehaviorIds { get; }

IReadOnlyList<string>

Gets the explicitly excluded capability keys.

public IReadOnlyList<string> ExcludedCapabilityKeys { get; }

IReadOnlyList<string>

Gets the explicitly excluded environment names.

public IReadOnlyList<string> ExcludedEnvironmentNames { get; }

IReadOnlyList<string>

Gets the explicitly excluded module identifiers.

public IReadOnlyList<string> ExcludedModuleIds { get; }

IReadOnlyList<string>

Gets the explicitly excluded subject identifiers.

public IReadOnlyList<string> ExcludedSubjectIds { get; }

IReadOnlyList<string>

Gets the explicitly excluded descriptive tags.

public IReadOnlyList<string> ExcludedTags { get; }

IReadOnlyList<string>

Gets the explicitly excluded tenant identifiers.

public IReadOnlyList<string> ExcludedTenantIds { get; }

IReadOnlyList<string>

Gets the explicitly excluded transport identifiers.

public IReadOnlyList<string> ExcludedTransportIds { get; }

IReadOnlyList<string>

Gets a value indicating whether any targeting constraint was supplied.

public bool HasValues { get; }

bool

Gets the explicitly included behavior identifiers.

public IReadOnlyList<string> IncludedBehaviorIds { get; }

IReadOnlyList<string>

Gets the explicitly included capability keys.

public IReadOnlyList<string> IncludedCapabilityKeys { get; }

IReadOnlyList<string>

Gets the explicitly included environment names.

public IReadOnlyList<string> IncludedEnvironmentNames { get; }

IReadOnlyList<string>

Gets the explicitly included module identifiers.

public IReadOnlyList<string> IncludedModuleIds { get; }

IReadOnlyList<string>

Gets the explicitly included subject identifiers.

public IReadOnlyList<string> IncludedSubjectIds { get; }

IReadOnlyList<string>

Gets the explicitly included descriptive tags.

public IReadOnlyList<string> IncludedTags { get; }

IReadOnlyList<string>

Gets the explicitly included tenant identifiers.

public IReadOnlyList<string> IncludedTenantIds { get; }

IReadOnlyList<string>

Gets the explicitly included transport identifiers.

public IReadOnlyList<string> IncludedTransportIds { get; }

IReadOnlyList<string>

Reads feature-flag targeting settings from the supplied configuration section.

public static FeatureFlagTargetingSettings FromSection(IConfigurationSection section)

section IConfigurationSection

The configuration section that contains the targeting settings.

FeatureFlagTargetingSettings

The parsed targeting settings.