ANHAdmin.ProcessCaller.ReadStdOut C# (CSharp) Method

ReadStdOut() protected method

Handles reading of stdout and firing an event for every line read
protected ReadStdOut ( ) : void
return void
        protected virtual void ReadStdOut()
        {
            string str;
            while ((str = process.StandardOutput.ReadLine()) != null)
            {
                FireAsync(StdOutReceived, this, new DataReceivedEventArgs("S", str));
                Thread.Sleep(1); // sleep
            }
            FireAsync(StdOutReceived, this, new DataReceivedEventArgs("S", null));
        }