Beispiel #1
0
        internal FtpClientProxy(IFtpClientProxyConfig config, IFlurlClientFactory client, TokenProvider tokenProvider, FtpConfig ftpConfig)
        {
            _init(config, null, ftpConfig);

            _tokenProvider = tokenProvider;

            _client = _initClient(client);

            _connectionInfo = _initConnectionInfo();
        }
Beispiel #2
0
        internal FtpClientProxy(IFtpClientProxyConfig config, IFlurlClientFactory client, TokenProvider tokenProvider, Uri uri, NetworkCredential credentials)
        {
            //In here we can dispose the FtpConfig because has no 'Certificate'
            using var ftpConfig = new FtpConfig(uri, credentials);

            _init(config, null, ftpConfig);

            _tokenProvider = tokenProvider;

            _client = _initClient(client);

            _connectionInfo = _initConnectionInfo();
        }