Class PatternMatcher
- Namespace
- TypedRest.CodeGeneration.Patterns
- Assembly
- TypedRest.CodeGeneration.dll
Matches a set of IPatterns against a path tree.
public class PatternMatcher : IPatternMatcher
- Inheritance
-
objectPatternMatcher
- Implements
Constructors
PatternMatcher(PatternRegistry)
Creates a pattern matcher.
public PatternMatcher(PatternRegistry patterns)
Parameters
patternsPatternRegistryAn ordered list of all known IPatterns.
Methods
GetEndpoints(PathTree)
Generates endpoints for the specified tree.
public IDictionary<string, IEndpoint> GetEndpoints(PathTree tree)
Parameters
treePathTree