/// <summary> /// Returns conf node for the network or throws if network with requested name was not found /// </summary> public IConfigSectionNode GetNetworkConfNode(string netName) { var net = NetworkConfNodes.FirstOrDefault(n => n.IsSameNameAttr(netName)); if (net == null) { throw new MetabaseException(StringConsts.METABASE_NAMED_NETWORK_NOT_FOUND_ERROR.Args(netName ?? SysConsts.NULL)); } return(net); }
/// <summary> /// Returns true when the network with the specified name exists in metabase netoworks definition /// </summary> public bool NetworkExists(string netName) { var net = NetworkConfNodes.FirstOrDefault(n => n.IsSameNameAttr(netName)); return(net != null); }