Table of Contents

Class StartProcess

Namespace
Bonsai.IO
Assembly
Bonsai.System.dll

Represents an operator that starts a new system process with the specified file name and command-line arguments.

public class StartProcess : Source<int>
Inheritance
StartProcess
Inherited Members

Properties

Arguments

Gets or sets the set of command-line arguments to use when starting the application.

public string Arguments { get; set; }

Property Value

string

FileName

Gets or sets the name of the application or document to start.

[FileNameFilter("Executable files|*.exe|All Files|*.*")]
public string FileName { get; set; }

Property Value

string

Methods

Generate()

Starts a new system process with the specified file name and command-line arguments and surfaces the exit code when the process terminates through an observable sequence.

public override IObservable<int> Generate()

Returns

IObservable<int>

A sequence containing the exit code that the process specified when it terminated.

Generate<TSource>(IObservable<TSource>)

Starts a new system process with the specified file name and command-line arguments for each element of an observable sequence, and surfaces all the exit codes as the processes terminate.

public IObservable<int> Generate<TSource>(IObservable<TSource> source)

Parameters

source IObservable<TSource>

An observable sequence used to start the system processes. For each element produced by this sequence, a new system process will be started.

Returns

IObservable<int>

A sequence containing all the exit codes from the processes started by the source sequence. A new exit code is produced every time one of the processes terminates.

Type Parameters

TSource

The type of the elements in the source sequence.