C# 클래스 Canonicalize.Strategies.MapStrategy

URL canonicalization strategy using a map/dictionary data structure to map old paths to new ones.
상속: IUrlStrategy
파일 보기 프로젝트 열기: schourode/canonicalize 1 사용 예제들

공개 메소드들

메소드 설명
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