public void AttachTo(PinIn <T> pin) { if (!attached.Contains(pin)) { attached.Add(pin); } }
public void Receive(PinIn <T> pin, T item) { if (item is IDisposable) { ((IDisposable)item).Dispose(); } OutputPin.Send(Generate()); }
public ObjectSource() { InputPin = new PinIn <T>(this); OutputPin = new PinOut <T>(); }