Пример #1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="uri"></param>
        /// <returns></returns>
        public Uri MapUri(Uri uri)
        {
            var mapping = new UriMapping();
            mapping.MappedUri = new Uri(this.MappedUri, UriKind.Relative);
            mapping.Uri = new Uri(this.Uri, UriKind.Relative);

            return mapping.MapUri(uri);
        }
Пример #2
0
		public Uri MapUri(Uri uri)
		{
			// Do the uri mapping without regard to upper or lower case
			UriMapping _uriMapping = new UriMapping() { Uri = (Uri == null || string.IsNullOrEmpty(Uri.OriginalString) ? null : new Uri(Uri.OriginalString.ToLower(), UriKind.RelativeOrAbsolute)), MappedUri = MappedUri };
			return _uriMapping.MapUri(uri == null || string.IsNullOrEmpty(uri.OriginalString) ? null : new Uri(uri.OriginalString.ToLower(), UriKind.RelativeOrAbsolute));
		}