예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FtpFileSystem"/> class.
        /// </summary>
        /// <param name="serverAddress">The server address.</param>
        /// <param name="credentials">The credentials.</param>
        public FtpFileSystem(Uri serverAddress, NetworkCredential credentials)
        {
            serverAddress.ThrowIfNull(() => serverAddress);
            credentials.ThrowIfNull(() => credentials);

            this.client = new FtpClient(credentials);
        }