Class FeatureFlagEvaluationContext
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Abstractions.Features
Assembly: Cephalon.Abstractions.dll
Supplies contextual information for evaluating a feature flag at runtime.
public sealed class FeatureFlagEvaluationContextInheritance
Section titled “Inheritance”object ← FeatureFlagEvaluationContext
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”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)Parameters
Section titled “Parameters”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.
Properties
Section titled “Properties”BehaviorId
Section titled “ BehaviorId”Gets the current behavior identifier when one is known.
public string? BehaviorId { get; }Property Value
Section titled “Property Value”CapabilityKey
Section titled “ CapabilityKey”Gets the current capability key when one is known.
public string? CapabilityKey { get; }Property Value
Section titled “Property Value”Gets an empty feature-flag evaluation context.
public static FeatureFlagEvaluationContext Empty { get; }Property Value
Section titled “Property Value”EnvironmentName
Section titled “ EnvironmentName”Gets the active hosting environment name.
public string? EnvironmentName { get; }Property Value
Section titled “Property Value”Metadata
Section titled “ Metadata”Gets additional evaluation metadata.
public IReadOnlyDictionary<string, string> Metadata { get; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>
ModuleId
Section titled “ ModuleId”Gets the current module identifier when one is known.
public string? ModuleId { get; }Property Value
Section titled “Property Value”SubjectId
Section titled “ SubjectId”Gets the current subject identifier when one is known.
public string? SubjectId { get; }Property Value
Section titled “Property Value”Gets the descriptive tags associated with the current request or workload.
public IReadOnlyList<string> Tags { get; }Property Value
Section titled “Property Value”TenantId
Section titled “ TenantId”Gets the current tenant identifier when one is known.
public string? TenantId { get; }Property Value
Section titled “Property Value”TransportId
Section titled “ TransportId”Gets the active transport identifier when one is known.
public string? TransportId { get; }