protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing && multi != null) { multi.Dispose(); multi = null; } }
public CurlResponseStream(Multi multi, Easy easy) { if (multi == null) { throw new ArgumentNullException("multi"); } else if (easy == null) { throw new ArgumentNullException("easy"); } this.multi = multi; easy.WriteHandler = AppendBuffer; }