Ejemplo n.º 1
0
        public void PullValue(NodeDispatcher dispatcher)
        {
            if (dispatcher == Source.Dispatcher)
            {
                object value;
                if (!_values.TryTake(out value))
                {
                    value = SourcePin.GetValue();
                }

                TargetPin.SetValue(value);
            }
            else
            {
                TargetPin.SetValue(_values.Take());
            }
        }
Ejemplo n.º 2
0
 public void PushValue()
 {
     _values.Add(SourcePin.GetValue());
 }