Skip to content

Class ModuleDescriptor

Namespace: Cephalon.Abstractions.Modules
Assembly: Cephalon.Abstractions.dll

Describes a module for discovery, ordering, manifest generation, and diagnostics.

public sealed class ModuleDescriptor

objectModuleDescriptor

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

ModuleDescriptor(string, string, string, IEnumerable<Type>?, IEnumerable<string>?, string?, IReadOnlyDictionary<string, string>?)

Section titled “ ModuleDescriptor(string, string, string, IEnumerable<Type>?, IEnumerable<string>?, string?, IReadOnlyDictionary<string, string>?)”

Creates a module descriptor.

public ModuleDescriptor(string id, string displayName, string description, IEnumerable<Type>? dependsOn = null, IEnumerable<string>? tags = null, string? version = null, IReadOnlyDictionary<string, string>? metadata = null)

id string

The stable module identifier.

displayName string

The human-readable module name.

description string

The module description.

dependsOn IEnumerable<Type>?

The module types this module depends on.

tags IEnumerable<string>?

The tags associated with the module.

version string?

The declared module version.

metadata IReadOnlyDictionary<string, string>?

Optional module metadata.

Gets the module types this module depends on.

public IReadOnlyList<Type> DependsOn { get; }

IReadOnlyList<Type>

Gets the module description.

public string Description { get; }

string

Gets the human-readable module name.

public string DisplayName { get; }

string

Gets the stable module identifier.

public string Id { get; }

string

Gets optional module metadata.

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

IReadOnlyDictionary<string, string>

Gets the tags associated with the module.

public IReadOnlyList<string> Tags { get; }

IReadOnlyList<string>

Gets the declared module version, when one is available.

public string? Version { get; }

string?