Table of Contents

Class BuilderRegistry

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

A list of all known IBuilders.

public class BuilderRegistry
Inheritance
object
BuilderRegistry

Constructors

BuilderRegistry()

public BuilderRegistry()

Properties

Default

Builder registry with the built-in default IBuilders.

public static BuilderRegistry Default { get; }

Property Value

BuilderRegistry

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

builder IBuilder<TEndpoint>

Returns

BuilderRegistry

Type Parameters

TEndpoint

For(IEndpoint)

Returns an IBuilder suitable for the kind of endpoint.

public IBuilder For(IEndpoint endpoint)

Parameters

endpoint IEndpoint

Returns

IBuilder

Exceptions

KeyNotFoundException

No builder matching the endpoint's kind found.