public PausableStream ( Stream s ) : System | ||
s | Stream | Stream which should be wrapped and extended by the possibility to be paused on read or write by another thread. |
return | System |
public PausableStream(Stream s) : base(s) {
this.cancelTaskSource = new CancellationTokenSource();
this.cancelToken = this.cancelTaskSource.Token;
}