C# Класс Canonicalize.Strategies.MapStrategy

URL canonicalization strategy using a map/dictionary data structure to map old paths to new ones.
Наследование: IUrlStrategy
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Apply ( UriBuilder uri ) : void

Makes a lookup in the backing dictionary for the path and replaces it if matched.

MapStrategy ( string>.IDictionary dictionary ) : System

Initializes a MapStrategy with a specific backing dictionary.

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

Apply() публичный Метод

Makes a lookup in the backing dictionary for the path and replaces it if matched.
public Apply ( UriBuilder uri ) : void
uri System.UriBuilder The URL to be canonicalized.
Результат void

MapStrategy() публичный Метод

Initializes a MapStrategy with a specific backing dictionary.
public MapStrategy ( string>.IDictionary dictionary ) : System
dictionary string>.IDictionary Mapping between old paths (keys) and new paths (values).
Результат System