public bool IsAllowed(Uri uri, string method)
            {
                // check methods
                if (!AllowAnyMethod)
                {
                    // if not all methods are allowed (*) then only GET and POST request are possible
                    // further restriction exists in the Client http stack
                    if ((String.Compare(method, "GET", StringComparison.OrdinalIgnoreCase) != 0) &&
                        (String.Compare(method, "POST", StringComparison.OrdinalIgnoreCase) != 0))
                    {
                        return(false);
                    }
                }

                // check domains
                if (AllowAnyDomain)
                {
                    return(true);
                }

                if (Domains.All(domain => !CheckDomainUri(uri, domain)))
                {
                    return(false);
                }
                return(true);
            }