예제 #1
0
 public void AttachTo(PinIn <T> pin)
 {
     if (!attached.Contains(pin))
     {
         attached.Add(pin);
     }
 }
예제 #2
0
        public void Receive(PinIn <T> pin, T item)
        {
            if (item is IDisposable)
            {
                ((IDisposable)item).Dispose();
            }

            OutputPin.Send(Generate());
        }
예제 #3
0
 public ObjectSource()
 {
     InputPin  = new PinIn <T>(this);
     OutputPin = new PinOut <T>();
 }