C# Class Canonicalize.Strategies.CustomStrategy

Allows for custom URL canonicalization strategies defined using an Action<UrlBuilder>.
Inheritance: IUrlStrategy
Mostra file Open project: schourode/canonicalize

Public Methods

Method Description
Apply ( UriBuilder uri ) : void

Applies the custom URL canonicalization action to the URL.

CustomStrategy ( Action action ) : System

Initializes a CustomStrategy as defined in an Action<UrlBuilder>.

Method Details

Apply() public method

Applies the custom URL canonicalization action to the URL.
public Apply ( UriBuilder uri ) : void
uri System.UriBuilder
return void

CustomStrategy() public method

Initializes a CustomStrategy as defined in an Action<UrlBuilder>.
public CustomStrategy ( Action action ) : System
action Action The canonicalization action to be applied to the URL.
return System