Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced

ProcessOwnedDirectory.CreateForProcessAsync

Section titled “ProcessOwnedDirectory.CreateForProcessAsync”
  • Creates a directory protected by this process lifetime when the caller can retain only file metadata. Payload consumers in other processes must register their lifetimes before using it.

API: engine
Project: Inno.Core.IO

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

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

Parameter identity: A current operation’s explicit 32-digit hexadecimal directory identity shared by its process participants.

Parameter cancellationToken: Cancels before the process claim is transferred.

The new directory, preserved until every recorded process exits and the producer retires it. No managed lease object is retained by the caller.

Exception T:System.IO.IOException: Ownership cannot be established within the boundary.

Exception T:System.ArgumentException: The producer root or current operation identity is invalid.

Exception T:System.IO.InvalidDataException: An existing operation claim is malformed, inactive, or cannot authorize this process.