Class BuilderRegistry
- Namespace
- TypedRest.CodeGeneration.CSharp.Endpoints
- Assembly
- TypedRest.CodeGeneration.CSharp.dll
A list of all known IBuilders.
public class BuilderRegistry
- Inheritance
-
objectBuilderRegistry
Constructors
BuilderRegistry()
public BuilderRegistry()
Properties
Default
Builder registry with the built-in default IBuilders.
public static BuilderRegistry Default { get; }
Property Value
Methods
Add<TEndpoint>(IBuilder<TEndpoint>)
Adds builder to the list of known builders.
public BuilderRegistry Add<TEndpoint>(IBuilder<TEndpoint> builder) where TEndpoint : IEndpoint, new()
Parameters
builderIBuilder<TEndpoint>
Returns
Type Parameters
TEndpoint
For(IEndpoint)
Returns an IBuilder suitable for the kind of endpoint.
public IBuilder For(IEndpoint endpoint)
Parameters
endpointIEndpoint
Returns
Exceptions
- KeyNotFoundException
No builder matching the endpoint's kind found.