Ejemplo n.º 1
0
        public static URL GetSiteRoot(URL urlSrc)
        {
            var uri     = urlSrc.ToUri();
            var rootURL = uri.OriginalString.Replace(uri.LocalPath, "").Replace(uri.Query, "").Replace(uri.Fragment, "");

            return(new URL(rootURL));
        }
Ejemplo n.º 2
0
 public static URL GetSiteRoot(URL urlSrc)
 {
     var uri = urlSrc.ToUri();
     var rootURL = uri.OriginalString.Replace(uri.LocalPath, "").Replace(uri.Query,"").Replace(uri.Fragment,"");
     return new URL(rootURL);
 }