Class ModuleDiscoverySettings
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll
Describes how the engine discovers modules from assemblies, package references, and package directories.
public sealed class ModuleDiscoverySettingsInheritance
Section titled “Inheritance”object ← ModuleDiscoverySettings
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”ModuleDiscoverySettings(IReadOnlyList<string>?, IReadOnlyList<ModulePackageReference>?, IReadOnlyList<ModulePackageDirectory>?)
Section titled “ ModuleDiscoverySettings(IReadOnlyList<string>?, IReadOnlyList<ModulePackageReference>?, IReadOnlyList<ModulePackageDirectory>?)”Initializes a new instance of the
public ModuleDiscoverySettings(IReadOnlyList<string>? assemblies = null, IReadOnlyList<ModulePackageReference>? packages = null, IReadOnlyList<ModulePackageDirectory>? packageDirectories = null)Parameters
Section titled “Parameters”assemblies IReadOnlyList<string>?
Assembly names or paths to scan for modules.
packages IReadOnlyList<ModulePackageReference>?
Explicit package references to load.
packageDirectories IReadOnlyList<ModulePackageDirectory>?
Package directories to scan for manifests.
Properties
Section titled “Properties”Assemblies
Section titled “ Assemblies”Gets assembly names or paths to scan for modules.
public IReadOnlyList<string> Assemblies { get; }Property Value
Section titled “Property Value”Gets an empty module discovery settings instance.
public static ModuleDiscoverySettings Empty { get; }Property Value
Section titled “Property Value”HasValues
Section titled “ HasValues”Gets a value indicating whether any discovery inputs were explicitly supplied.
public bool HasValues { get; }Property Value
Section titled “Property Value”PackageDirectories
Section titled “ PackageDirectories”Gets package directories to scan for manifests.
public IReadOnlyList<ModulePackageDirectory> PackageDirectories { get; }Property Value
Section titled “Property Value”IReadOnlyList<ModulePackageDirectory>
Packages
Section titled “ Packages”Gets explicit package references to load.
public IReadOnlyList<ModulePackageReference> Packages { get; }Property Value
Section titled “Property Value”IReadOnlyList<ModulePackageReference>
Methods
Section titled “Methods”FromConfiguration(IConfiguration, string)
Section titled “ FromConfiguration(IConfiguration, string)”Reads module discovery settings from configuration.
public static ModuleDiscoverySettings 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 module discovery settings.