예제 #1
0
        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));
        }
예제 #2
0
        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));
        }