Method Generate
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.
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.