Table of Contents

Class DefaultPattern

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

The default fallback pattern that is used if no other matches are found. Generates Endpoints.

public class DefaultPattern : IPattern
Inheritance
object
DefaultPattern
Implements

Methods

TryGetEndpoint(PathTree, IPatternMatcher)

Generates an endpoint for the specified path tree, if it matches the pattern.

public IEndpoint? TryGetEndpoint(PathTree tree, IPatternMatcher patternMatcher)

Parameters

tree PathTree

The path tree to try to match against the pattern.

patternMatcher IPatternMatcher

The pattern matcher to use for matching child trees.

Returns

IEndpoint

The endpoint if the pattern matched; null otherwise.