Table of Contents

Interface IEndpointGenerator

Namespace
TypedRest.CodeGeneration.CSharp.Endpoints
Assembly
TypedRest.CodeGeneration.CSharp.dll
public interface IEndpointGenerator

Properties

Naming

INamingStrategy Naming { get; }

Property Value

INamingStrategy

WithInterfaces

bool WithInterfaces { get; }

Property Value

bool

Methods

Generate(string, IEndpoint)

(CSharpProperty property, IEnumerable<ICSharpType> types) Generate(string key, IEndpoint endpoint)

Parameters

key string
endpoint IEndpoint

Returns

(CSharpProperty property, IEnumerable<ICSharpType> types)

GetCollisionPrefix(string)

Returns a disambiguating prefix for an endpoint with the given key, or null if no prefix is needed. Currently returns the parent key when the same key produces a custom endpoint class in more than one place.

string? GetCollisionPrefix(string key)

Parameters

key string

Returns

string

PopParent()

Pops a key from the parent stack.

void PopParent()

PushParent(string)

Pushes a key onto the parent stack. Builders call this around recursion into child endpoints so that GetCollisionPrefix(string) can return the current parent.

void PushParent(string key)

Parameters

key string