internal void EndDataTransfer() { lock (this) { if (m_dataStream == null) throw new InvalidOperationException(); m_dataStream = null; } }
internal void BeginDataTransfer(FtpDataStream stream) { lock (this) { if (m_dataStream != null) throw new FtpDataTransferException(); m_dataStream = stream; } }