Table of Contents

Class AssemblyReference

Namespace
Ecng.Compilation
Assembly
Ecng.Compilation.dll

The reference to the .NET assembly.

public class AssemblyReference : BaseCodeReference, ICodeReference, IPersistable
Inheritance
AssemblyReference
Implements
Inherited Members
Extension Methods

Constructors

AssemblyReference()

Initializes a new instance of the AssemblyReference.

public AssemblyReference()

Properties

FileName

Gets or sets the file name of the assembly reference.

public string FileName { get; set; }

Property Value

string

IsValid

Determines whether the assembly reference is valid.

public override bool IsValid { get; }

Property Value

bool

Location

public override string Location { get; }

Property Value

string

Name

Gets the display name of the assembly reference.

public override string Name { get; }

Property Value

string

Methods

GetImages(CancellationToken)

Asynchronously retrieves the images associated with the code reference.

public override ValueTask<IEnumerable<(string name, byte[] body)>> GetImages(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

The token to monitor for cancellation requests.

Returns

ValueTask<IEnumerable<(string name, byte[] body)>>

A task that represents the asynchronous operation. The task result contains an enumerable of tuples with image name and image body.

Load(SettingsStorage)

Loads the settings from the specified storage.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

The storage containing the settings.

Save(SettingsStorage)

Saves the settings to the specified storage.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

The storage where the settings will be saved.