Table of Contents

Interface ICodeReference

Namespace
Ecng.Compilation
Assembly
Ecng.Compilation.dll

Represents a reference to code that supports persistence.

public interface ICodeReference : IPersistable
Inherited Members
Extension Methods

Properties

Id

Gets the identifier of the code reference.

string Id { get; }

Property Value

string

IsValid

Gets a value indicating whether the code reference is valid.

bool IsValid { get; }

Property Value

bool

Location

Gets the location of the code reference.

string Location { get; }

Property Value

string

Name

Gets the name of the code reference.

string Name { get; }

Property Value

string

Methods

GetImages(CancellationToken)

Asynchronously retrieves the images associated with the code reference.

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.