Zero Install .NET API 2.20.0
ZeroInstall.Services.Executors.IEnvironmentBuilder Interface Reference

Fluent-style builder for a process execution environment. More...

Inheritance diagram for ZeroInstall.Services.Executors.IEnvironmentBuilder:
ZeroInstall.Services.Executors.EnvironmentBuilder

Public Member Functions

IEnvironmentBuilder AddWrapper (string? wrapper)
 Instead of executing the selected program directly, pass it as an argument to this program. Useful for debuggers. May contain command-line arguments. Whitespaces must be escaped! More...
 
IEnvironmentBuilder AddArguments (params string[] arguments)
 Appends user specified arguments to the command-line. More...
 
ProcessStartInfo ToStartInfo ()
 Builds a ProcessStartInfo for starting the program. More...
 
Process? Start ()
 Starts the program. More...
 

Detailed Description

Fluent-style builder for a process execution environment.

Member Function Documentation

◆ AddArguments()

IEnvironmentBuilder ZeroInstall.Services.Executors.IEnvironmentBuilder.AddArguments ( params string[]  arguments)

Appends user specified arguments to the command-line.

Returns
The execution environment. Reference to self for fluent API use.

Implemented in ZeroInstall.Services.Executors.EnvironmentBuilder.

◆ AddWrapper()

IEnvironmentBuilder ZeroInstall.Services.Executors.IEnvironmentBuilder.AddWrapper ( string?  wrapper)

Instead of executing the selected program directly, pass it as an argument to this program. Useful for debuggers. May contain command-line arguments. Whitespaces must be escaped!

Returns
The execution environment. Reference to self for fluent API use.

Implemented in ZeroInstall.Services.Executors.EnvironmentBuilder.

◆ Start()

Process? ZeroInstall.Services.Executors.IEnvironmentBuilder.Start ( )

Starts the program.

Returns
The newly created Process.
Exceptions
ImplementationNotFoundExceptionOne of the Implementations is not cached yet.
ExecutorExceptionThe IExecutor was unable to process the Selections or the main executable could not be launched.
IOExceptionA problem occurred while writing a file.
UnauthorizedAccessExceptionWrite access to a file is not permitted.

Implemented in ZeroInstall.Services.Executors.EnvironmentBuilder.

◆ ToStartInfo()

ProcessStartInfo ZeroInstall.Services.Executors.IEnvironmentBuilder.ToStartInfo ( )

Builds a ProcessStartInfo for starting the program.

Returns
The ProcessStartInfo that can be used to start the new Process.
Exceptions
ImplementationNotFoundExceptionOne of the Implementations is not cached yet.
ExecutorExceptionThe IExecutor was unable to process the Selections.
IOExceptionA problem occurred while writing a file.
UnauthorizedAccessExceptionWrite access to a file is not permitted.

Implemented in ZeroInstall.Services.Executors.EnvironmentBuilder.


The documentation for this interface was generated from the following file: