Class FeatureSettings
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll
Describes configuration-driven feature-flag settings for a Cephalon app.
public sealed class FeatureSettingsInheritance
Section titled “Inheritance”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”FeatureSettings(IReadOnlyList<FeatureFlagSettings>?)
Section titled “ FeatureSettings(IReadOnlyList<FeatureFlagSettings>?)”Creates feature settings.
public FeatureSettings(IReadOnlyList<FeatureFlagSettings>? flags = null)Parameters
Section titled “Parameters”flags IReadOnlyList<FeatureFlagSettings>?
The feature flags configured for the app.
Properties
Section titled “Properties”Gets an empty feature settings instance.
public static FeatureSettings Empty { get; }Property Value
Section titled “Property Value”Gets the feature flags configured for the app.
public IReadOnlyList<FeatureFlagSettings> Flags { get; }Property Value
Section titled “Property Value”IReadOnlyList<FeatureFlagSettings>
HasValues
Section titled “ HasValues”Gets a value indicating whether any feature settings were explicitly supplied.
public bool HasValues { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”FromConfiguration(IConfiguration, string)
Section titled “ FromConfiguration(IConfiguration, string)”Reads feature settings from configuration.
public static FeatureSettings FromConfiguration(IConfiguration configuration, string sectionPath = "Engine")Parameters
Section titled “Parameters”configuration IConfiguration
The configuration source that contains the engine section.
sectionPath string
The root configuration section path to read from.
Returns
Section titled “Returns”The parsed feature settings.