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
Afficher le fichier Open project: sepich/superputty

Private Properties

Свойство Type Description
AppendLineAndNotify bool
ReadAll void

Méthodes publiques

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

Private Methods

Méthode Description
AppendLineAndNotify ( string line ) : bool
ReadAll ( ) : void

Method Details

AsyncStreamReader() public méthode

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

Dispose() public méthode

public Dispose ( ) : void
Résultat void

StopAndGetData() public méthode

public StopAndGetData ( ) : string[]
Résultat string[]