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

Represent as a pager item link generator that append a query parameter to the current url with custom parameter name and value generators.
Inheritance: QueryStringLinkGenerator
Mostra file Open project: sgjsakura/AspNetCore

Private Properties

Property Type Description

Public Methods

Method Description
CustomQueryStringLinkGenerator ( string>.[ queryNameGenerator, string>.[ queryValueGenerator ) : System

Create a new instance with specified information.

GenerateQueryParameterName ( PagerItemGenerationContext context ) : string

Generate the query parameter name for the specified PagerItem.

GenerateQueryParameterValue ( PagerItemGenerationContext context ) : string

Generate the query parameter value for the specified PagerItem.

Method Details

CustomQueryStringLinkGenerator() public method

Create a new instance with specified information.
/// The or /// is null. ///
public CustomQueryStringLinkGenerator ( string>.[ queryNameGenerator, string>.[ queryValueGenerator ) : System
queryNameGenerator string>.[ The query parameter name generating method delegate.
queryValueGenerator string>.[ The query parameter value generating method delegate.
return System

GenerateQueryParameterName() public method

Generate the query parameter name for the specified PagerItem.
public GenerateQueryParameterName ( PagerItemGenerationContext context ) : string
context PagerItemGenerationContext The generation context.
return string

GenerateQueryParameterValue() public method

Generate the query parameter value for the specified PagerItem.
public GenerateQueryParameterValue ( PagerItemGenerationContext context ) : string
context PagerItemGenerationContext The generation context.
return string