public bool IsRequested(Uri uri) { string url = uri.GetComponents(UriComponents.HostAndPort | UriComponents.Path, UriFormat.Unescaped); foreach (string key in UrlList.Keys) if (url.StartsWith(key)) return true; return false; } }