Class IndexerBuilder
- Namespace
- TypedRest.CodeGeneration.TypeScript.Endpoints.Generic
- Assembly
- TypedRest.CodeGeneration.TypeScript.dll
Builds TypeScript code for IndexerEndpoints.
public class IndexerBuilder : BuilderBase<IndexerEndpoint>, IBuilder<IndexerEndpoint>, IBuilder
- Inheritance
-
objectIndexerBuilder
- Implements
- Inherited Members
Methods
GetBase(string, IndexerEndpoint, IEndpointGenerator)
Returns the TypedRest type the endpoint derives from, any additional types generated along the way, and any constructor arguments beyond the referrer and the relative URI.
protected override (TsIdentifier baseType, IEnumerable<ITsType> types, IEnumerable<TsExpression> extraArguments) GetBase(string key, IndexerEndpoint endpoint, IEndpointGenerator generator)
Parameters
keystringendpointIndexerEndpointgeneratorIEndpointGenerator
Returns
Remarks
Unlike the C# IndexerEndpoint, which instantiates its element type itself, the TypeScript one takes
the element endpoint class as a constructor argument.
GetBaseType(IndexerEndpoint, IEndpointGenerator)
Returns the TypedRest type the endpoint derives from.
protected override TsIdentifier GetBaseType(IndexerEndpoint endpoint, IEndpointGenerator generator)
Parameters
endpointIndexerEndpointgeneratorIEndpointGenerator