コード例 #1
0
        public UnaryBufferingVertex(int index, Stage <TTime> stage, Expression <Func <IEnumerable <TInput>, IEnumerable <TOutput> > > transformation)
            : base(index, stage)
        {
            this.Input = new VertexInputBuffer <TInput, TTime>(this);

            if (transformation != null)
            {
                this.Transformation = transformation.Compile();
            }
        }
コード例 #2
0
        public SinkBufferingVertex(int index, Stage <TTime> stage, Expression <Action <IEnumerable <TOutput> > > action)
            : base(index, stage)
        {
            this.Input = new VertexInputBuffer <TOutput, TTime>(this);

            if (action != null)
            {
                this.Action = action.Compile();
            }
        }