/// <summary> /// Creates a <see cref="UnixChildProcessState"/> with a new process token (an identifier unique within the current AssemblyLoadContext). /// </summary> /// <returns>A <see cref="UnixChildProcessStateHolder"/> that wraps the created <see cref="UnixChildProcessState"/>.</returns> public static UnixChildProcessStateHolder Create() { var state = ChildProcessStateCollection.Create(); return(new UnixChildProcessStateHolder(state)); }
/// <summary> /// Creates a <see cref="UnixChildProcessState"/> with a new process token (an identifier unique within the current AssemblyLoadContext). /// </summary> /// <returns>A <see cref="UnixChildProcessStateHolder"/> that wraps the created <see cref="UnixChildProcessState"/>.</returns> public static UnixChildProcessStateHolder Create(UnixChildProcessStateHelper helper, bool allowSignal) { var state = ChildProcessStateCollection.Create(helper, allowSignal); return(new UnixChildProcessStateHolder(state)); }