C# Класс Canonicalize.CanonicalizeRouteBuilderExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

Custom() публичный статический Метод

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.
Результат CanonicalizeRouteBuilder

Host() публичный статический Метод

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.
Результат CanonicalizeRouteBuilder

Lowercase() публичный статический Метод

Adds Strategies.LowercaseStrategy to the strategy collection.
public static Lowercase ( this builder ) : CanonicalizeRouteBuilder
builder this Reponsible for building the .
Результат CanonicalizeRouteBuilder

Map() публичный статический Метод

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).
Результат CanonicalizeRouteBuilder

NoTrailingSlash() публичный статический Метод

Adds Strategies.NoTrailingSlashStrategy to the strategy collection.
public static NoTrailingSlash ( this builder ) : CanonicalizeRouteBuilder
builder this Reponsible for building the .
Результат CanonicalizeRouteBuilder

NoWww() публичный статический Метод

Adds Strategies.NoWwwStrategy to the strategy collection.
public static NoWww ( this builder ) : CanonicalizeRouteBuilder
builder this Reponsible for building the .
Результат CanonicalizeRouteBuilder

Pattern() публичный статический Метод

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.
Результат CanonicalizeRouteBuilder

TrailingSlash() публичный статический Метод

Adds Strategies.TrailingSlashStrategy to the strategy collection.
public static TrailingSlash ( this builder ) : CanonicalizeRouteBuilder
builder this Reponsible for building the .
Результат CanonicalizeRouteBuilder

Www() публичный статический Метод

Adds Strategies.NoWwwStrategy to the strategy collection.
public static Www ( this builder ) : CanonicalizeRouteBuilder
builder this Reponsible for building the .
Результат CanonicalizeRouteBuilder