Class EnvironmentExtensions
Inherited Members
Namespace: GitCredentialManager
Assembly: Algenta.Colectica.Repository.Client.dll
Syntax
public static class EnvironmentExtensions
Methods
CreateProcess(IEnvironment, string, string)
Create a process ready to start, with redirected streams.
Declaration
public static Process CreateProcess(this IEnvironment environment, string path, string args)
Parameters
Type | Name | Description |
---|---|---|
IEnvironment | environment | The IEnvironment. |
string | path | Absolute file path of executable to start. |
string | args | Command line arguments to pass to executable. |
Returns
Type | Description |
---|---|
Process | Process object ready to start. |
CreateProcess(IEnvironment, string, string, bool)
Create a process ready to start, with redirected streams.
Declaration
public static Process CreateProcess(this IEnvironment environment, string path, string args, bool useShellExecute)
Parameters
Type | Name | Description |
---|---|---|
IEnvironment | environment | The IEnvironment. |
string | path | Absolute file path of executable or command to start. |
string | args | Command line arguments to pass to executable. |
bool | useShellExecute | True to resolve |
Returns
Type | Description |
---|---|
Process | Process object ready to start. |
LocateExecutable(IEnvironment, string)
Locate an executable on the current PATH.
Declaration
public static string LocateExecutable(this IEnvironment environment, string program)
Parameters
Type | Name | Description |
---|---|---|
IEnvironment | environment | The IEnvironment. |
string | program | Executable program name. |
Returns
Type | Description |
---|---|
string | List of all instances of the found executable program, in order of most specific to least. |