public static IStream <TOut> CrossApplySftpFiles <TOut>(this IStream <string> stream, string name, ISingleStream <SftpConnectionInfo> connectionInfoS, Func <SftpFilesValue, string, SftpConnectionInfo, TOut> selector, bool noParallelisation = false) { var valuesProvider = new SftpFilesValuesProvider(); return(stream.CrossApply <string, SftpConnectionInfo, SftpFilesValuesProviderArgs, SftpFilesValue, TOut>(name, connectionInfoS, valuesProvider.PushValues, (i, j) => new SftpFilesValuesProviderArgs { Path = i }, selector, noParallelisation)); }
public static IStream <SftpFilesValue> CrossApplySftpFiles <TIn>(this IStream <TIn> stream, string name, ISingleStream <SftpConnectionInfo> connectionInfoS, Func <TIn, string> getFolderPath, bool noParallelisation = false) { var valuesProvider = new SftpFilesValuesProvider(); return(stream.CrossApply <TIn, SftpConnectionInfo, SftpFilesValuesProviderArgs, SftpFilesValue, SftpFilesValue>(name, connectionInfoS, valuesProvider.PushValues, (i, j) => new SftpFilesValuesProviderArgs { Path = getFolderPath(i) }, (i, j, k) => i, noParallelisation)); }