BaseRuleUrlResolver<T> Class

Summary

Base class for retrieving an URL linking to a site containing help for a rule.
Assembly
Cake.Issues.dll
Namespace
Cake.Issues
Base Types
  • Object
Derived Types
graph BT Type-->Base0["Object"] Type["BaseRuleUrlResolver<T>"] class Type type-node Derived0["FakeRuleUrlResolver"]-->Type click Derived0 "/api/Cake.Issues.Testing/FakeRuleUrlResolver"

Syntax

public abstract class BaseRuleUrlResolver<T> where T : BaseRuleDescription, new()

Type Parameters

Name Description
T Type of the rule description.

Constructors

Name Summary
BaseRuleUrlResolver()

Methods

Name Value Summary
AddUrlResolver(Func<T, Uri>) void
Registers a new resolver with default priority of 0.
AddUrlResolver(Func<T, Uri>, int) void
Registers a new resolver which with a specific priority.
ResolveRuleUrl(string) Uri
Returns an URL linking to a site describing a specific rule.
TryGetRuleDescription(string, T) bool
Parses a rule into a BaseRuleDescription.

Extension Methods

Name Value Summary
NotNull<BaseRuleUrlResolver<T>>(string) void
Throws an exception if the specified parameter's value is null.
GitHub