public static AssetNetworkPort ConnectedPort(this AssetNetworkPort port) { return(port.NetworkConnection?.Ports.Single(connectedPort => connectedPort.Id != port.Id)); }
public static Guid?ConnectedPortId(this AssetNetworkPort port) { return(port.ConnectedPort() ?.Id); }