C# Class StarryEyes.Anomaly.TwitterApi.Streams.Internals.CancellableStreamReader

A StreamReader implementation which accepts CancellationToken.
Inheritance: IDisposable
Afficher le fichier Open project: karno/StarryEyes Class Usage Examples

Méthodes publiques

Méthode Description
CancellableStreamReader ( Stream stream ) : System
CancellableStreamReader ( Stream stream, Encoding encoding ) : System
Dispose ( ) : void
ReadLineAsync ( CancellationToken cancellationToken ) : Task

Private Methods

Méthode Description
Dispose ( bool disposing ) : void
GetStringAndRecycle ( StringBuilder builder ) : string
ReceiveToBufferAsync ( CancellationToken cancellationToken ) : Task

Method Details

CancellableStreamReader() public méthode

public CancellableStreamReader ( Stream stream ) : System
stream Stream
Résultat System

CancellableStreamReader() public méthode

public CancellableStreamReader ( Stream stream, Encoding encoding ) : System
stream Stream
encoding System.Text.Encoding
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

ReadLineAsync() public méthode

public ReadLineAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
Résultat Task