Example #1
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();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FtpConnectionData"/> class.
 /// </summary>
 /// <param name="backgroundCommandHandler">Utility module that allows background execution of an FTP command.</param>
 public FtpConnectionData([NotNull] IBackgroundCommandHandler backgroundCommandHandler)
 {
     UserData                 = new ExpandoObject();
     TransferMode             = new FtpTransferMode(FtpFileType.Ascii);
     BackgroundCommandHandler = backgroundCommandHandler;
     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();
 }