Interface IEndpointGenerator
- Namespace
- TypedRest.CodeGeneration.CSharp.Endpoints
- Assembly
- TypedRest.CodeGeneration.CSharp.dll
public interface IEndpointGenerator
Properties
Naming
INamingStrategy Naming { get; }
Property Value
WithInterfaces
bool WithInterfaces { get; }
Property Value
Methods
Generate(string, IEndpoint)
(CSharpProperty property, IEnumerable<ICSharpType> types) Generate(string key, IEndpoint endpoint)
Parameters
Returns
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
keystring
Returns
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
keystring