Synced
BuildCachePublisher.RecordProcessUse
Section titled “BuildCachePublisher.RecordProcessUse”
- Registers a process-owned loader directory and its dependencies before returning it to a loader. Retirement preserves the directory until every recorded process has exited. Repeated registrations retain the complete dependency closure of that process-owned operation.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Build.Toolchains
Declaration
Section titled “Declaration”public void Inno.Build.Toolchains.BuildCachePublisher.RecordProcessUse(string directory, string leasePath, System.Collections.Generic.IReadOnlyList<string> dependencies, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Parameters
Section titled “Parameters”Parameter directory: The completed directory within this publisher’s boundary.
Parameter leasePath: The persistent producer and retirement lease outside the directory.
Parameter dependencies: Owned generations and workspaces required throughout this process-owned operation.
Parameter cancellationToken: Cancels ownership acquisition before the process claim is recorded.
Exceptions
Section titled “Exceptions”Exception T:System.IO.IOException: The directory escapes ownership or its registration cannot be written.
Exception T:System.OperationCanceledException: Ownership acquisition was canceled.