modules/platforms/dotnet/Apache.Ignite.Core.Tests/Process/IgniteProcess.cs
/// <summary>
/// Attach output reader to the process.
/// </summary>
/// <param name="proc">Process.</param>
/// <param name="reader">Process stream reader.</param>
/// <param name="outReader">Output reader.</param>
/// <param name="err">Whether this is error stream.</param>
Attach output reader to the process.
Attach output reader to the process .
private static void Attach(Process proc, StreamReader reader, IIgniteProcessOutputReader outReader, bool err)
        {
            new Thread(() =>
            {
                while (!proc.HasExited)
                    outReader.OnOutput(proc, reader.ReadLine(), err);
            }) {IsBackground = true}.Start();
        }
private static void Attach ( Process proc , StreamReader reader , IIgniteProcessOutputReader outReader , bool err ) { new Thread ( ( ) => { while ( ! proc . HasExited ) outReader . OnOutput ( proc , reader . ReadLine ( ) , err ) ; } ) { IsBackground = true } . Start ( ) ; }
Attach output reader to the process.
Attach output reader to the process .
proc
Process
None
reader
StreamReader
Process stream reader.
Process stream reader .
outReader
IIgniteProcessOutputReader
None
err
bool
Whether this is error stream.
Whether this is error stream .