예제 #1
0
 public Logic(SingleSource <T> source) : base(source.Shape)
 {
     SetHandler(source.Outlet, onPull: () =>
     {
         Push(source.Outlet, source._element);
         CompleteStage();
     });
 }
예제 #2
0
            public Logic(SingleSource <T> stage) : base(stage.Shape)
            {
                _stage = stage;

                SetHandler(stage.Outlet, this);
            }