Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Collects source data and dependency declarations for one import operation.

API: engine
Inherits: object
Project: Inno.Assets.Pipeline

public sealed class Inno.Assets.Pipeline.AssetImportContext
Kind Element Description
Methods AssetImportContext.AcquireArtifact Acquires an immutable dependency output and records its invalidation dependency automatically.
Methods AssetImportContext.DependsOnArtifact Declares an imported artifact that invalidates this imported asset.
Methods AssetImportContext.DependsOnAsset(Inno.Assets.AssetDependency) Declares a direct runtime dependency by persistent descriptor.
Methods AssetImportContext.DependsOnAsset(Inno.Assets.AssetPath) Declares a direct runtime dependency by isolated source path.
Methods AssetImportContext.DependsOnCustomInput Declares a custom deterministic input that invalidates this asset.
Methods AssetImportContext.DependsOnSource Declares a source file that invalidates this imported asset.
Methods AssetImportContext.ReadSourceBytes Reads another source from the same candidate mount snapshot and records it as an import dependency.
Methods AssetImportContext.ReadSourceUtf8Text Reads another source as UTF-8 from the current candidate mount snapshot and records the dependency.
Methods AssetImportContext.ReadUtf8Text Reads the source bytes as UTF-8 text.
Methods AssetImportContext.ResolveDependency Resolves and declares a strongly typed runtime asset dependency during import.
Properties AssetImportContext.absolutePath Gets the absolute source path.
Properties AssetImportContext.assetPath Gets the isolated source path.
Properties AssetImportContext.extension Gets the normalized lower-case source extension.
Properties AssetImportContext.importSettings Gets the settings restored from this source’s sidecar against the isolated import generation. The value is detached and changes made during import are not saved to the sidecar.
Properties AssetImportContext.persistentId Gets the persistent identity assigned to the source asset.
Properties AssetImportContext.references Gets the asset-reference resolver bound to the isolated candidate generation.
Properties AssetImportContext.serialization Gets the serialization registry bound to the active import generation.
Properties AssetImportContext.services Gets the narrow structured serialization API bound to this importer candidate.
Properties AssetImportContext.sourceBytes Gets the raw source bytes.
Properties AssetImportContext.sourceHash Gets the deterministic source hash.
Properties AssetImportContext.types Gets the type catalog bound to the active import generation.