public BiDirIIOPServiceContext(ListenPoint[] listenPoints) { listen_points = listenPoints; }
private ListenPoint[] ConvertToListenPoints(object[] endPoints) { int nrOfIiopPoints = 0; for (int i = 0; i < endPoints.Length; i++) { if (endPoints[i] is ListenPoint) { nrOfIiopPoints++; } } ListenPoint[] result = new ListenPoint[nrOfIiopPoints]; int j = 0; for (int i = 0; i < endPoints.Length; i++) { if (endPoints[i] is ListenPoint) { result[j] = (ListenPoint)endPoints[i]; j++; } } return result; }