Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • 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.

API: engine
Project: Inno.Build.Toolchains

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))

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.

Exception T:System.IO.IOException: The directory escapes ownership or its registration cannot be written.

Exception T:System.OperationCanceledException: Ownership acquisition was canceled.