Device Search Keywords
Custom device developers can provide keywords which will be used for matching end-user searches within the Connexion UI. Typically, you’d expose very specific pieces of information, usually configuration or status. For example, the HL7 inbound device registers the ports it is listening on, enabling the end-user to easily search for channels using that port. The file writer device registers the path it is writing to.
In order to provide your own keywords for searching, override the Keywords property in the DeviceConfigurationFactory class.
The following code is from the HL7 Inbound device. It exposes listening ports, machine names and IPs, as well as the accepted host list.
public override List<string> Keywords
{
get
{
// init keywords with the list of listening ports
var keywords = new List<string>(Configuration.ListeningPorts.Select(p => p.ToString(CultureInfo.InvariantCulture)));
// add machine name/ips
if (!string.IsNullOrWhiteSpace(Configuration.SpecificInterface) && Configuration.NetworkInterface == NetworkInterfaces.SpecificInterface)
keywords.Add(Configuration.SpecificInterface);
if (!string.IsNullOrWhiteSpace(Configuration.AcceptedHostList))
keywords.Add(Configuration.AcceptedHostList);
return keywords;
}
}