public void Connect(IEndpoint point1, IEndpoint point2) { if (point1 != null && point2 != null && Object.ReferenceEquals(point1, point2)) { throw new ArgumentException(DUPLICATE_ENDPOINTS_EXCETION); } _endpoints.Connect(new IEndpoint[] { point1, point2 }); }
private void InitializeEndpoints(IEnumerable <IEndpoint> connectedPoints) { _endpoints.RegisterReceiveHandler(SignalReceivedHandler); foreach (var endpoint in _endpoints) { _inputStatus.Add(endpoint, 0); } _endpoints.Connect(connectedPoints); }