示例#1
0
        public async Task Execute(string input)
        {
            await InputtersFlow.ProcessAsync(new[] { input });

            await OutputtersFlow.CompletionTask;
        }
示例#2
0
        // Pipeline does not store neither crawlers nor appraisers flows because they are
        // implementation details.

        public DataflowPipeline(InputtersFlow inputtersFlow, OutputtersFlow outputtersFlow)
        {
            InputtersFlow  = inputtersFlow.ThrowIfNull(nameof(inputtersFlow));
            OutputtersFlow = outputtersFlow.ThrowIfNull(nameof(outputtersFlow));
        }