Skip to content

Class FeatureFlagTargetingDescriptor

Namespace: Cephalon.Abstractions.Features
Assembly: Cephalon.Abstractions.dll

Describes the optional targeting constraints that govern when a feature flag is considered active for a given runtime evaluation context.

public sealed class FeatureFlagTargetingDescriptor

objectFeatureFlagTargetingDescriptor

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

FeatureFlagTargetingDescriptor(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 “ FeatureFlagTargetingDescriptor(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 constraints.

public FeatureFlagTargetingDescriptor(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 module identifiers that are explicitly included in the targeted audience.

excludedModuleIds IReadOnlyList<string>?

The module identifiers that are explicitly excluded from the targeted audience.

includedBehaviorIds IReadOnlyList<string>?

The behavior identifiers that are explicitly included in the targeted audience.

excludedBehaviorIds IReadOnlyList<string>?

The behavior identifiers that are explicitly excluded from the targeted audience.

includedCapabilityKeys IReadOnlyList<string>?

The capability keys that are explicitly included in the targeted audience.

excludedCapabilityKeys IReadOnlyList<string>?

The capability keys that are explicitly excluded from the targeted audience.

includedTransportIds IReadOnlyList<string>?

The transport identifiers that are explicitly included in the targeted audience.

excludedTransportIds IReadOnlyList<string>?

The transport identifiers that are explicitly excluded from the targeted audience.

includedEnvironmentNames IReadOnlyList<string>?

The environment names that are explicitly included in the targeted audience.

excludedEnvironmentNames IReadOnlyList<string>?

The environment names that are explicitly excluded from the targeted audience.

includedTenantIds IReadOnlyList<string>?

The tenant identifiers that are explicitly included in the targeted audience.

excludedTenantIds IReadOnlyList<string>?

The tenant identifiers that are explicitly excluded from the targeted audience.

includedSubjectIds IReadOnlyList<string>?

The subject identifiers that are explicitly included in the targeted audience.

excludedSubjectIds IReadOnlyList<string>?

The subject identifiers that are explicitly excluded from the targeted audience.

includedTags IReadOnlyList<string>?

The descriptive tags that are explicitly included in the targeted audience.

excludedTags IReadOnlyList<string>?

The descriptive tags that are explicitly excluded from the targeted audience.

Gets an empty targeting descriptor with no constraints.

public static FeatureFlagTargetingDescriptor Empty { get; }

FeatureFlagTargetingDescriptor

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>