Table of Contents

Class PatternMatcher

Namespace
TypedRest.CodeGeneration.Patterns
Assembly
TypedRest.CodeGeneration.dll

Matches a set of IPatterns against a path tree.

public class PatternMatcher : IPatternMatcher
Inheritance
object
PatternMatcher
Implements

Constructors

PatternMatcher(PatternRegistry)

Creates a pattern matcher.

public PatternMatcher(PatternRegistry patterns)

Parameters

patterns PatternRegistry

An ordered list of all known IPatterns.

Methods

GetEndpoints(PathTree)

Generates endpoints for the specified tree.

public IDictionary<string, IEndpoint> GetEndpoints(PathTree tree)

Parameters

tree PathTree

Returns

IDictionary<string, IEndpoint>