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.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.IO
Declaration
Section titled “Declaration”public static System.Threading.Tasks.ValueTask<string> Inno.Core.IO.ProcessOwnedDirectory.CreateForProcessAsync(string root, string identity, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”The new directory, preserved until every recorded process exits and the producer retires it. No managed lease object is retained by the caller.
Exceptions
Section titled “Exceptions”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.