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

A StreamReader implementation which accepts CancellationToken.
Inheritance: IDisposable
Mostrar archivo Open project: karno/StarryEyes Class Usage Examples

Public Methods

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

Private Methods

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

Method Details

CancellableStreamReader() public method

public CancellableStreamReader ( Stream stream ) : System
stream Stream
return System

CancellableStreamReader() public method

public CancellableStreamReader ( Stream stream, Encoding encoding ) : System
stream Stream
encoding System.Text.Encoding
return System

Dispose() public method

public Dispose ( ) : void
return void

ReadLineAsync() public method

public ReadLineAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
return Task