C# Class SuperPutty.Scp.PscpClient.AsyncStreamReader

Utility class to read a bare stream. Works around the issues with FileStream blocking when no data is available...even on peek! http://zachsaw.blogspot.com/2011/07/streamreaderpeek-can-block-another-net.html
Inheritance: IDisposable
ファイルを表示 Open project: sepich/superputty

Private Properties

Property Type Description
AppendLineAndNotify bool
ReadAll void

Public Methods

Method Description
AsyncStreamReader ( string name, StreamReader reader, bool>.Func dataUpdated ) : System
Dispose ( ) : void
StopAndGetData ( ) : string[]

Private Methods

Method Description
AppendLineAndNotify ( string line ) : bool
ReadAll ( ) : void

Method Details

AsyncStreamReader() public method

public AsyncStreamReader ( string name, StreamReader reader, bool>.Func dataUpdated ) : System
name string
reader System.IO.StreamReader
dataUpdated bool>.Func
return System

Dispose() public method

public Dispose ( ) : void
return void

StopAndGetData() public method

public StopAndGetData ( ) : string[]
return string[]