C# Class Utility.NormalizationUrl

Normalize the Url for Check Are Same with other Url
Mostrar archivo Open project: rabbal/Mvc5

Public Properties

Property Type Description
DefaultDirectoryIndexes string[]

Public Methods

Method Description
AreTheSameUrls ( this uri1, Uri uri2 ) : bool
AreTheSameUrls ( this url1, string url2 ) : bool
NormalizeUrl ( this uri ) : string

Private Methods

Method Description
AddWww ( string url ) : string
LimitProtocols ( string url ) : string
RemoveDefaultDirectoryIndexes ( string url ) : string
RemoveDuplicateSlashes ( string url ) : string
RemoveFeedburnerPart ( string url ) : string
RemoveTheFragment ( string url ) : string
RemoveTrailingSlashAndEmptyQuery ( string url ) : string
UrlToLower ( Uri uri ) : string

Method Details

AreTheSameUrls() public static method

public static AreTheSameUrls ( this uri1, Uri uri2 ) : bool
uri1 this
uri2 System.Uri
return bool

AreTheSameUrls() public static method

public static AreTheSameUrls ( this url1, string url2 ) : bool
url1 this
url2 string
return bool

NormalizeUrl() public static method

public static NormalizeUrl ( this uri ) : string
uri this
return string

Property Details

DefaultDirectoryIndexes public_oe static_oe property

public static string[] DefaultDirectoryIndexes
return string[]