AssemblyReference
Ecng.Compilation
The reference to the .NET assembly.
Herda de: BaseCodeReference
Construtores
AssemblyReference
public AssemblyReference()
assemblyReference = AssemblyReference()
Initializes a new instance of the AssemblyReference.
AssemblyReference
public AssemblyReference(IFileSystem fileSystem)
assemblyReference = AssemblyReference(fileSystem)
Initializes a new instance of the AssemblyReference with a custom file system.
Propriedades
FileName
public string FileName { get; set; }
value = assemblyReference.FileName
assemblyReference.FileName = value
Gets or sets the file name of the assembly reference.
IsValid
public override bool IsValid { get; }
value = assemblyReference.IsValid
Determines whether the assembly reference is valid.
Name
public override string Name { get; }
value = assemblyReference.Name
Gets the display name of the assembly reference.
Métodos
GetImages
public override ValueTask<IEnumerable<ValueTuple<string, byte[]>>> GetImages(CancellationToken cancellationToken)
result = assemblyReference.GetImages(cancellationToken)
Asynchronously retrieves the images associated with the code reference.
- cancellationToken
- The token to monitor for cancellation requests.
Retorna: A task that represents the asynchronous operation. The task result contains an enumerable of tuples with image name and image body.
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = assemblyReference.LoadAsync(storage, cancellationToken)
Loads the settings from the specified storage.
- storage
- The storage containing the settings.
- cancellationToken
- CancellationToken
Retorna: Task
SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = assemblyReference.SaveAsync(storage, cancellationToken)
Saves the settings to the specified storage.
- storage
- The storage where the settings will be saved.
- cancellationToken
- CancellationToken
Retorna: Task