コード例 #1
0
        /// <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));
        }
コード例 #2
0
        /// <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));
        }