public SaltieUrl GetSaltieUrl(string _name) { SaltieUrl _SaltieUrl = new SaltieUrl(); foreach (SaltieUrl url in _urls) { if (url.Name == _name) { _SaltieUrl = url; } } if (string.IsNullOrEmpty(_SaltieUrl.Name)) { SueetieLogs.LogException("Saltie URL " + _name + " was not found."); } return(_SaltieUrl); }
public SaltieUrl GetSaltieUrl(string _name, string[] args) { SaltieUrl _SaltieUrl = new SaltieUrl(); foreach (SaltieUrl url in _urls) { if (url.Name == _name) { url.Url = FormatUrl(url.Pattern, args); _SaltieUrl = url; } } if (string.IsNullOrEmpty(_SaltieUrl.Name)) { SueetieLogs.LogException("SALTIE URL " + _name + " was not found."); } return(_SaltieUrl); }