Beispiel #1
0
        /// <summary>
        /// Sets up a bunch of environment variables for the new process
        /// </summary>
        /// <param name="environment"></param>
        /// <returns></returns>
        public static IUnstartedProcessIO WithEnvironment(
            IDictionary <string, string> environment
            )
        {
            var result = new UnstartedProcessIO(Environment.CurrentDirectory);

            return(result.WithEnvironment(environment));
        }
Beispiel #2
0
        /// <summary>
        /// Sets up for the new process to use the provided environment variable
        /// </summary>
        /// <param name="name"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        // ReSharper disable once MemberHidesStaticFromOuterClass
        public static IUnstartedProcessIO WithEnvironmentVariable(
            string name,
            string value
            )
        {
            var result = new UnstartedProcessIO(Environment.CurrentDirectory);

            return(result.WithEnvironmentVariable(name, value));
        }