Beispiel #1
0
 public Logic(DelayInitial <T> stage) : base(stage.Shape)
 {
     _stage = stage;
     SetHandler(_stage.In, onPush: () => Push(_stage.Out, Grab(_stage.In)));
     SetHandler(_stage.Out, onPull: () =>
     {
         if (_isOpen)
         {
             Pull(_stage.In);
         }
     });
 }
Beispiel #2
0
 public Logic(DelayInitial <T> stage) : base(stage.Shape)
 {
     _stage = stage;
     SetHandler(_stage.Inlet, this);
     SetHandler(_stage.Outlet, this);
 }