Synced
BuildCachePublisher.BeginWorkingDirectory
Section titled “BuildCachePublisher.BeginWorkingDirectory”
- Records a reusable workspace before its first payload write while the caller holds activity and producer leases. Existing unregistered directories are rejected, rather than adopted by cleanup authority.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Build.Toolchains
Declaration
Section titled “Declaration”public void Inno.Build.Toolchains.BuildCachePublisher.BeginWorkingDirectory(string directory, string leasePath, string? targetId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Parameters
Section titled “Parameters”Parameter directory: The new or previously registered workspace within this publisher root.
Parameter leasePath: The caller’s persistent exclusive producer lease outside the workspace.
Parameter targetId: The explicit product target, or null for shared host work.
Parameter cancellationToken: Cancels registration before payload writes.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: The publisher does not manage reusable workspaces or an existing directory has no current registration.
Exception T:System.IO.IOException: The workspace escapes its boundary or ownership cannot be written.