This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Issues.Tap.
Summary
Registers a new URL resolver with a specific priority.
- Assembly
- Cake
.Issues .Tap .dll - Namespace
- Cake
.Issues .Tap - Containing Type
- TapIssuesAliases
Syntax
public static void TapTextlintAddRuleUrlResolver(this ICakeContext context, Func<BaseRuleDescription, Uri> resolver, int priority)
Examples
Adds a provider of priority 5 returning a link for all rules starting with the string
Foo
to search with Google for the rule:
TapTextlintAddRuleUrlResolver(x =>
x.Rule.StartsWith("Foo") ?
new Uri("https://www.google.com/search?q=%22" + x.Rule + "%22") :
null,
5)
Attributes
Type | Description |
---|---|
Cake |
|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
resolver | Func |
Resolver which returns an System.Uri linking to a site
containing help for a specific BaseRuleDescription . |
priority | int | Priority of the resolver. Resolver with a higher priority are considered first during resolving of the URL. |
Return Value
Type | Description |
---|---|
void |