internal void Remove( string host ) { lock ( this ) { OpenedHost openedHost = (OpenedHost)connections[host]; if ( openedHost != null ) { if ( --openedHost.nonCachedConnectionsCount == 0 ) { connections.Remove( host ); } } } }
public override void Close() { if (_stream != null) { _downloadManager.Remove(this); _stream.Close(); _stream = null; } }