C# Class Canonicalize.CanonicalizeRouteBuilderExtensions

Mostrar archivo Open project: schourode/canonicalize

Public Methods

Method 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 method

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.
return CanonicalizeRouteBuilder

Host() public static method

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.
return CanonicalizeRouteBuilder

Lowercase() public static method

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

Map() public static method

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).
return CanonicalizeRouteBuilder

NoTrailingSlash() public static method

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

NoWww() public static method

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

Pattern() public static method

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.
return CanonicalizeRouteBuilder

TrailingSlash() public static method

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

Www() public static method

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