Beispiel #1
0
        public static bool CanHandle(Uri uri)
        {
            if (uri is null)
            {
                return(false);
            }
            _RewriteUri(ref uri);
            if (uri.Host != DomainProvider.Eh.RootUri.Host && uri.Host != DomainProvider.Ex.RootUri.Host)
            {
                return(false);
            }

            var data = new UriHandlerData(uri);

            foreach (var item in handlers)
            {
                if (item.CanHandle(data))
                {
                    _PreviousData    = data;
                    _PreviousHandler = item;
                    return(true);
                }
            }
            return(false);
        }
Beispiel #2
0
        public static bool CanHandle(Uri uri)
        {
            if (uri == null)
            {
                return(false);
            }
            if (uri.Host != UriProvider.Eh.RootUri.Host && uri.Host != UriProvider.Ex.RootUri.Host)
            {
                return(false);
            }
            var data = new UriHandlerData(uri);

            foreach (var item in handlers)
            {
                if (item.CanHandle(data))
                {
                    previousData    = data;
                    previousHandler = item;
                    return(true);
                }
            }
            return(false);
        }