Table of Contents

Class EndpointRegistry

Namespace
TypedRest.CodeGeneration.Endpoints
Assembly
TypedRest.CodeGeneration.dll

A list of all known IEndpoint kinds.

public class EndpointRegistry
Inheritance
object
EndpointRegistry

Properties

Default

Endpoint registry with the built-in default IEndpoint kinds.

public static EndpointRegistry Default { get; }

Property Value

EndpointRegistry

Methods

Add<T>()

Adds T to the list of known endpoint kinds.

public EndpointRegistry Add<T>() where T : IEndpoint, new()

Returns

EndpointRegistry

Type Parameters

T

OfKind(string)

Instantiates an IEndpoint of the specified kind.

public IEndpoint OfKind(string kind)

Parameters

kind string

Returns

IEndpoint

Exceptions

KeyNotFoundException

Endpoint kind not registered.