Пример #1
0
 private void SignalReceivedHandler(IEndpoint sender, Int32 signal)
 {
     if (Object.ReferenceEquals(sender, _endpoints[0].ConnectedPoint))
     {
         _endpoints.ProduceAt(1, signal);
     }
     else if (Object.ReferenceEquals(sender, _endpoints[1].ConnectedPoint))
     {
         _endpoints.ProduceAt(0, signal);
     }
 }
Пример #2
0
 public void ConnectAt(IEndpoint connectedPoint, Int32 index)
 {
     _inputStatus[_endpoints[index]] = 0;
     _endpoints.ConnectAt(index, connectedPoint);
     _endpoints.ProduceAt(index, LastSignalStatus);
 }