AssetPipeline.ExportRuntimeArtifactsAsync
Section titled “AssetPipeline.ExportRuntimeArtifactsAsync”
- Exports a runtime-only artifact snapshot on a worker without loading artifact files into memory.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Assets.Pipeline
Declaration
Section titled “Declaration”public System.Threading.Tasks.Task<Inno.Assets.AssetRuntimeContentInfo> Inno.Assets.Pipeline.AssetPipeline.ExportRuntimeArtifactsAsync(string destinationContentRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Remarks
Section titled “Remarks”Keeps generation admission and serialization pinned until the worker completes, fails or cancels. A pending or faulted generation cannot start a new export.
Parameters
Section titled “Parameters”Parameter destinationContentRoot: The empty destination that receives the runtime asset database.
Parameter cancellationToken: The token checked while individual artifact files are copied.
Returns
Section titled “Returns”A task that completes with counts and source identities for the captured runtime snapshot.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: Thrown when runtime artifacts are incomplete, transitive authoring inputs have failed or become stale, or the asset service is not available.
Exception T:System.OperationCanceledException: Thrown when cancellation is requested before export completes.