C# 클래스 Sakura.AspNetCore.Mvc.Generators.CurrentUriBasedLinkGenerator

Provide the common feature for current uri based pager item link generator.
상속: IPagerItemLinkGenerator
파일 보기 프로젝트 열기: sgjsakura/AspNetCore

공개 메소드들

메소드 설명
GenerateLink ( PagerItemGenerationContext context ) : string

Generate the link url for the specified PagerItem.

보호된 메소드들

메소드 설명
HandleUriCore ( [ currentUri, [ context ) : string

The core method for handling the current uri.

Most URI handling method requirest the URI be absolute format, however in the view page relative URI is recommended. The currentUri argument in this method has been handled and is ensured to be absolute. The generator will correctly recover it to the original format after handling.

비공개 메소드들

메소드 설명
GetCurrentUriWithQuery ( ViewContext viewContext ) : string

메소드 상세

GenerateLink() 공개 메소드

Generate the link url for the specified PagerItem.
public GenerateLink ( PagerItemGenerationContext context ) : string
context PagerItemGenerationContext The generation context.
리턴 string

HandleUriCore() 보호된 추상적인 메소드

The core method for handling the current uri.
Most URI handling method requirest the URI be absolute format, however in the view page relative URI is recommended. The currentUri argument in this method has been handled and is ensured to be absolute. The generator will correctly recover it to the original format after handling.
protected abstract HandleUriCore ( [ currentUri, [ context ) : string
currentUri [ The URL to handle, this URL is ensured in absolute mode.
context [ The generation context.
리턴 string