/// <inheritdoc/> public void Dispose() { BackgroundCommandHandler.Dispose(); PassiveSocketClient?.Dispose(); FileSystem.Dispose(); PassiveSocketClient = null; }
/// <summary> /// Initializes a new instance of the <see cref="FtpConnectionData"/> class. /// </summary> /// <param name="connection">The <see cref="FtpConnection"/> to create the data for</param> internal FtpConnectionData([NotNull] FtpConnection connection) { UserData = new ExpandoObject(); TransferMode = new FtpTransferMode(FtpFileType.Ascii); BackgroundCommandHandler = new BackgroundCommandHandler(connection); Path = new Stack <IUnixDirectoryEntry>(); FileSystem = new EmptyUnixFileSystem(); }
/// <summary> /// Initializes a new instance of the <see cref="FtpConnectionData"/> class. /// </summary> /// <param name="connection">The <see cref="FtpConnection"/> to create the data for</param> internal FtpConnectionData([NotNull] FtpConnection connection) { UserData = new ExpandoObject(); TransferMode = new FtpTransferMode(FtpFileType.Ascii); BackgroundCommandHandler = new BackgroundCommandHandler(connection); Path = new Stack<IUnixDirectoryEntry>(); FileSystem = new EmptyUnixFileSystem(); }