ข้ามไปยังเนื้อหา

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 ModuleDiscoverySettings

objectModuleDiscoverySettings

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

ModuleDiscoverySettings(IReadOnlyList<string>?, IReadOnlyList<ModulePackageReference>?, IReadOnlyList<ModulePackageDirectory>?)

Section titled “ ModuleDiscoverySettings(IReadOnlyList<string>?, IReadOnlyList<ModulePackageReference>?, IReadOnlyList<ModulePackageDirectory>?)”

Initializes a new instance of the class.

public ModuleDiscoverySettings(IReadOnlyList<string>? assemblies = null, IReadOnlyList<ModulePackageReference>? packages = null, IReadOnlyList<ModulePackageDirectory>? packageDirectories = null)

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.

Gets assembly names or paths to scan for modules.

public IReadOnlyList<string> Assemblies { get; }

IReadOnlyList<string>

Gets an empty module discovery settings instance.

public static ModuleDiscoverySettings Empty { get; }

ModuleDiscoverySettings

Gets a value indicating whether any discovery inputs were explicitly supplied.

public bool HasValues { get; }

bool

Gets package directories to scan for manifests.

public IReadOnlyList<ModulePackageDirectory> PackageDirectories { get; }

IReadOnlyList<ModulePackageDirectory>

Gets explicit package references to load.

public IReadOnlyList<ModulePackageReference> Packages { get; }

IReadOnlyList<ModulePackageReference>

FromConfiguration(IConfiguration, string)

Section titled “ FromConfiguration(IConfiguration, string)”

Reads module discovery settings from configuration.

public static ModuleDiscoverySettings FromConfiguration(IConfiguration configuration, string sectionPath = "Engine")

configuration IConfiguration

The configuration source that contains the engine section.

sectionPath string

The root configuration section path to read from.

ModuleDiscoverySettings

The parsed module discovery settings.