Class EndpointRegistry
- Namespace
- TypedRest.CodeGeneration.Endpoints
- Assembly
- TypedRest.CodeGeneration.dll
A list of all known IEndpoint kinds.
public class EndpointRegistry
- Inheritance
-
objectEndpointRegistry
Properties
Default
Endpoint registry with the built-in default IEndpoint kinds.
public static EndpointRegistry Default { get; }
Property Value
Methods
Add<T>()
Adds T to the list of known endpoint kinds.
public EndpointRegistry Add<T>() where T : IEndpoint, new()
Returns
Type Parameters
T
OfKind(string)
Instantiates an IEndpoint of the specified kind.
public IEndpoint OfKind(string kind)
Parameters
kindstring
Returns
Exceptions
- KeyNotFoundException
Endpoint kind not registered.