Beispiel #1
0
            public FtpProvider(IFtpConfig config, IFtpClientPoolFactory ftpClientFactory, IFtpParser <TPayload> parser)
            {
                _config = config;

                if (config.Uri == null)
#pragma warning disable CS0618 // Type or member is obsolete
                {
                    _ftpClient = ftpClientFactory.Create(config.MaxConcurrentConnections, config.Host, config.Credentials);
                }
#pragma warning restore CS0618 // Type or member is obsolete
                else
                {
                    _ftpClient = ftpClientFactory.Create(config.MaxConcurrentConnections, config.FtpConfig);
                }

                _parser = parser;
            }
Beispiel #2
0
 public FtpProvider(IFtpConfig config, IFtpClientPoolFactory ftpClientFactory, IFtpParser <TPayload> parser)
 {
     _config    = config;
     _ftpClient = ftpClientFactory.Create(config.MaxConcurrentConnections, config.Host, config.Credentials);
     _parser    = parser;
 }