BuildCacheArtifactDescriptor.Constructor
Section titled “BuildCacheArtifactDescriptor.Constructor”
- Freezes ownership metadata supplied by the artifact’s actual publisher.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Build.Toolchains
Declaration
Section titled “Declaration”public Inno.Build.Toolchains.BuildCacheArtifactDescriptor.BuildCacheArtifactDescriptor(string directory, string leasePath, string? targetId, long bytes, System.DateTime lastUseUtc, System.Collections.Generic.IReadOnlyList<string> dependencies, Inno.Build.Toolchains.BuildCacheArtifactRole role)Parameters
Section titled “Parameters”Parameter directory: The absolute published artifact or producer-owned workspace directory.
Parameter leasePath: The absolute persistent file used by this entry’s actual producer and readers for Core.IO coordination.
Parameter bytes: The publisher-recorded sum of owned file lengths, captured under writing ownership for cache budgeting. It does not measure allocated disk blocks or count shared hardlinks as recovered volume space.
Parameter targetId: The explicit product target, or null for a shared host artifact that target-scoped cleanup must preserve.
Parameter lastUseUtc: The publisher’s last recorded use, used only to order retirement.
Parameter dependencies: Absolute artifact directories required by this generation.
Parameter role: The producer-declared lifetime; workspace preference alone does not pin an immutable product.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: A path is relative or the timestamp is not UTC.
Exception T:System.ArgumentOutOfRangeException: The measured size is negative.
Exception T:System.ArgumentNullException: The dependency collection is absent.