C# Class Sakura.AspNetCore.Mvc.Generators.CurrentUriBasedLinkGenerator

Provide the common feature for current uri based pager item link generator.
Inheritance: IPagerItemLinkGenerator
Afficher le fichier Open project: sgjsakura/AspNetCore

Méthodes publiques

Méthode Description
GenerateLink ( PagerItemGenerationContext context ) : string

Generate the link url for the specified PagerItem.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
GetCurrentUriWithQuery ( ViewContext viewContext ) : string

Method Details

GenerateLink() public méthode

Generate the link url for the specified PagerItem.
public GenerateLink ( PagerItemGenerationContext context ) : string
context PagerItemGenerationContext The generation context.
Résultat string

HandleUriCore() protected abstract méthode

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.
Résultat string