C# Class Canonicalize.CanonicalizeRouteBuilderExtensions

Afficher le fichier Open project: schourode/canonicalize

Méthodes publiques

Méthode Description
Custom ( this builder, Action action ) : CanonicalizeRouteBuilder

Adds a Strategies.CustomStrategy to the strategy collection.

Host ( this builder, string host ) : CanonicalizeRouteBuilder

Adds Strategies.HostStrategy to the strategy collection.

Lowercase ( this builder ) : CanonicalizeRouteBuilder

Adds Strategies.LowercaseStrategy to the strategy collection.

Map ( this builder, string>.IDictionary dictionary ) : CanonicalizeRouteBuilder

Adds Strategies.MapStrategy to the strategy collection.

NoTrailingSlash ( this builder ) : CanonicalizeRouteBuilder

Adds Strategies.NoTrailingSlashStrategy to the strategy collection.

NoWww ( this builder ) : CanonicalizeRouteBuilder

Adds Strategies.NoWwwStrategy to the strategy collection.

Pattern ( this builder, string regex, string replacement ) : CanonicalizeRouteBuilder

Adds Strategies.PatternStrategy to the strategy collection.

TrailingSlash ( this builder ) : CanonicalizeRouteBuilder

Adds Strategies.TrailingSlashStrategy to the strategy collection.

Www ( this builder ) : CanonicalizeRouteBuilder

Adds Strategies.NoWwwStrategy to the strategy collection.

Method Details

Custom() public static méthode

Adds a Strategies.CustomStrategy to the strategy collection.
public static Custom ( this builder, Action action ) : CanonicalizeRouteBuilder
builder this Reponsible for building the .
action Action The canonicalization action to be applied to the URL.
Résultat CanonicalizeRouteBuilder

Host() public static méthode

Adds Strategies.HostStrategy to the strategy collection.
public static Host ( this builder, string host ) : CanonicalizeRouteBuilder
builder this Reponsible for building the .
host string Canonical DNS host name or IP address.
Résultat CanonicalizeRouteBuilder

Lowercase() public static méthode

Adds Strategies.LowercaseStrategy to the strategy collection.
public static Lowercase ( this builder ) : CanonicalizeRouteBuilder
builder this Reponsible for building the .
Résultat CanonicalizeRouteBuilder

Map() public static méthode

Adds Strategies.MapStrategy to the strategy collection.
public static Map ( this builder, string>.IDictionary dictionary ) : CanonicalizeRouteBuilder
builder this Reponsible for building the .
dictionary string>.IDictionary Mapping between old paths (keys) and new paths (values).
Résultat CanonicalizeRouteBuilder

NoTrailingSlash() public static méthode

Adds Strategies.NoTrailingSlashStrategy to the strategy collection.
public static NoTrailingSlash ( this builder ) : CanonicalizeRouteBuilder
builder this Reponsible for building the .
Résultat CanonicalizeRouteBuilder

NoWww() public static méthode

Adds Strategies.NoWwwStrategy to the strategy collection.
public static NoWww ( this builder ) : CanonicalizeRouteBuilder
builder this Reponsible for building the .
Résultat CanonicalizeRouteBuilder

Pattern() public static méthode

Adds Strategies.PatternStrategy to the strategy collection.
public static Pattern ( this builder, string regex, string replacement ) : CanonicalizeRouteBuilder
builder this Reponsible for building the .
regex string The regular expression applied to the path.
replacement string Replacement string applied on match.
Résultat CanonicalizeRouteBuilder

TrailingSlash() public static méthode

Adds Strategies.TrailingSlashStrategy to the strategy collection.
public static TrailingSlash ( this builder ) : CanonicalizeRouteBuilder
builder this Reponsible for building the .
Résultat CanonicalizeRouteBuilder

Www() public static méthode

Adds Strategies.NoWwwStrategy to the strategy collection.
public static Www ( this builder ) : CanonicalizeRouteBuilder
builder this Reponsible for building the .
Résultat CanonicalizeRouteBuilder