internal HiApplication LookUp(string url) { HiApplication result; if (this.Pattern != null) { if (!this.regex.IsMatch(url)) { result = null; return(result); } } for (int i = 0; i < this.keys.Count; i++) { HiApplication hiApplication = this.ht[this.keys[i]] as HiApplication; if (hiApplication.IsMatch(url)) { result = hiApplication; return(result); } } if (this.DefaultName != null) { result = (this.ht[this.DefaultName] as HiApplication); } else { result = null; } return(result); }
internal HiApplication LookUp(string string_0) { HiApplication result; if (this.Pattern != null && !this.regex.IsMatch(string_0)) { result = null; } else { for (int i = 0; i < this.keys.Count; i++) { HiApplication hiApplication = this.hashtable_0[this.keys[i]] as HiApplication; if (hiApplication.IsMatch(string_0)) { result = hiApplication; return(result); } } if (this.DefaultName != null) { result = (this.hashtable_0[this.DefaultName] as HiApplication); } else { result = null; } } return(result); }
internal HiApplication LookUp(string url) { if ((this.Pattern == null) || this.regex.IsMatch(url)) { for (int i = 0; i < this.keys.Count; i++) { HiApplication application = this.ht[this.keys[i]] as HiApplication; if (application.IsMatch(url)) { return(application); } } if (this.DefaultName != null) { return(this.ht[this.DefaultName] as HiApplication); } } return(null); }