Skip to content

Class FeatureFlagEvaluationContext

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

Supplies contextual information for evaluating a feature flag at runtime.

public sealed class FeatureFlagEvaluationContext

objectFeatureFlagEvaluationContext

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

FeatureFlagEvaluationContext(string?, string?, string?, string?, string?, string?, string?, IReadOnlyList<string>?, IReadOnlyDictionary<string, string>?)

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

Creates a feature-flag evaluation context.

public FeatureFlagEvaluationContext(string? environmentName = null, string? moduleId = null, string? behaviorId = null, string? capabilityKey = null, string? transportId = null, string? tenantId = null, string? subjectId = null, IReadOnlyList<string>? tags = null, IReadOnlyDictionary<string, string>? metadata = null)

environmentName string?

The active hosting environment name.

moduleId string?

The current module identifier when one is known.

behaviorId string?

The current behavior identifier when one is known.

capabilityKey string?

The current capability key when one is known.

transportId string?

The active transport identifier when one is known.

tenantId string?

The current tenant identifier when one is known.

subjectId string?

The current subject identifier when one is known.

tags IReadOnlyList<string>?

The descriptive tags associated with the current request or workload.

metadata IReadOnlyDictionary<string, string>?

Additional evaluation metadata.

Gets the current behavior identifier when one is known.

public string? BehaviorId { get; }

string?

Gets the current capability key when one is known.

public string? CapabilityKey { get; }

string?

Gets an empty feature-flag evaluation context.

public static FeatureFlagEvaluationContext Empty { get; }

FeatureFlagEvaluationContext

Gets the active hosting environment name.

public string? EnvironmentName { get; }

string?

Gets additional evaluation metadata.

public IReadOnlyDictionary<string, string> Metadata { get; }

IReadOnlyDictionary<string, string>

Gets the current module identifier when one is known.

public string? ModuleId { get; }

string?

Gets the current subject identifier when one is known.

public string? SubjectId { get; }

string?

Gets the descriptive tags associated with the current request or workload.

public IReadOnlyList<string> Tags { get; }

IReadOnlyList<string>

Gets the current tenant identifier when one is known.

public string? TenantId { get; }

string?

Gets the active transport identifier when one is known.

public string? TransportId { get; }

string?