public static void UseFtp(this JobHostConfiguration config, FtpConfiguration ftpConfig = null) { if (config == null) { throw new ArgumentNullException(nameof(config)); } if (ftpConfig == null) { ftpConfig = new FtpConfiguration(); } config.RegisterExtensionConfigProvider(new FtpExtensionConfig(ftpConfig)); }
public FtpExtensionConfig(FtpConfiguration ftpConfig) { _ftpConfig = ftpConfig; }