コード例 #1
0
 /// <inheritdoc/>
 public void Dispose()
 {
     BackgroundCommandHandler.Dispose();
     PassiveSocketClient?.Dispose();
     FileSystem.Dispose();
     PassiveSocketClient = null;
 }
コード例 #2
0
 /// <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();
 }
コード例 #3
0
 /// <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();
 }