Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Creates a fresh directory and ownership record under an explicitly supplied file boundary.

API: engine
Project: Inno.Core.IO

public static System.Threading.Tasks.ValueTask<Inno.Core.IO.ProcessOwnedDirectory> Inno.Core.IO.ProcessOwnedDirectory.CreateAsync(string root, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))

Parameter root: The absolute producer-controlled root; existing unrecorded directories are never adopted.

Parameter cancellationToken: Cancels before payload ownership is returned.

An owned directory lease; dispose only after its subprocesses and consumers finish.

Exception T:System.ArgumentException: The root is relative or is a filesystem root.

Exception T:System.IO.IOException: The boundary crosses a link or ownership cannot be recorded.

Exception T:System.OperationCanceledException: Creation was canceled.