Summary
Specifies a set of values that are used to start a process.
- Namespace
- Cake
.Core .IO - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["ProcessSettings"]
class Type type-node
Syntax
public sealed class ProcessSettings
Properties
Name | Value | Summary |
---|---|---|
Arguments | Process |
Gets or sets the set of command-line arguments to use when starting the application.
|
EnvironmentVariables | IDictionary |
Gets or sets search paths for files, directories for temporary files, application-specific options, and other similar information.
|
NoWorkingDirectory | bool |
Gets or sets a value indicating whether or not to opt out of using
an explicit working directory for the process.
|
Redirected |
Func |
Gets or sets a function that intercepts the error output before being redirected. Use in conjunction with
RedirectStandardError .
|
Redirected |
Func |
Gets or sets a function that intercepts the standard output before being redirected. Use in conjunction with
RedirectStandardOutput .
|
Redirect |
bool |
Gets or sets a value indicating whether the error output of an application is written to the standard error stream.
|
Redirect |
bool |
Gets or sets a value indicating whether the output of an application is written to the standard output stream.
|
Silent | bool |
Gets or sets a value indicating whether process output will be suppressed.
|
Timeout | int? |
Gets or sets optional timeout, in milliseconds, to wait for the associated process to exit. The maximum is the largest possible value of a 32-bit integer, which represents infinity to the operating system.
|
WorkingDirectory | DirectoryPath |
Gets or sets the working directory for the process to be started.
|
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
Set |
ProcessSettings |
Sets a function that intercepts the standard error before being redirected. Use in conjunction with
RedirectStandardOutput .
|
Set |
ProcessSettings |
Sets a function that intercepts the standard output before being redirected. Use in conjunction with
RedirectStandardOutput .
|
Set |
ProcessSettings |
Sets a value indicating whether the standard error of an application is written to the standard error stream.
|
Set |
ProcessSettings |
Sets a value indicating whether the output of an application is written to the standard output stream.
|
SetTimeout |
ProcessSettings |
Sets the optional timeout for process execution.
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
From StringExtensions
Requires the Cake.Issues addin
|
UseWorkingDirectory |
ProcessSettings |
Sets the working directory for the process to be started.
|
WithArguments |
ProcessSettings |
Sets the arguments for the process.
|