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

API: engine
Project: Inno.Build.Toolchains

public void Inno.Build.Toolchains.BuildCachePublisher.BeginWorkingDirectory(string directory, string leasePath, string? targetId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))

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.

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.