/// <summary> /// Obtains the list of all ports that are currently registered with the platform /// </summary> /// <returns>The list of registered ports</returns> protected IList <VPort> GetAllPortsFromPlatform() { IList <VPort> portList = platform.GetAllPorts(); if (portList == null) { logger.Log("{0} failed to get allportslist", this.ToString()); } else { logger.Log("{0} successfully received allportslist with {1} ports", this.ToString(), portList.Count().ToString()); } return(portList); }
public IListContract <IPort> GetAllPorts() { return(CollectionAdapters.ToIListContract <VPort, IPort>(_view.GetAllPorts(), PortAdapter.V2C, PortAdapter.C2V)); }