Class StreamingCollectionBuilder
- Namespace
- TypedRest.CodeGeneration.TypeScript.Endpoints.Reactive
- Assembly
- TypedRest.CodeGeneration.TypeScript.dll
Builds TypeScript code for StreamingCollectionEndpoints, degrading them to plain collections.
public class StreamingCollectionBuilder : CollectionBuilderBase<StreamingCollectionEndpoint>, IBuilder<StreamingCollectionEndpoint>, IBuilder
- Inheritance
-
objectStreamingCollectionBuilder
- Implements
- Inherited Members
Properties
GenericTypeName
The name of the TypedRest type taking the element endpoint class as a constructor argument,
e.g. GenericCollectionEndpoint.
protected override string GenericTypeName { get; }
Property Value
TypeName
The name of the TypedRest type creating its element endpoints itself, e.g. CollectionEndpoint.
protected override string TypeName { get; }
Property Value
Methods
GetBase(string, StreamingCollectionEndpoint, 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, StreamingCollectionEndpoint endpoint, IEndpointGenerator generator)
Parameters
keystringendpointStreamingCollectionEndpointgeneratorIEndpointGenerator
Returns
Remarks
TypeScript splits the two arities of the C# CollectionEndpoint into two classes:
CollectionEndpoint<TEntity>, which creates plain element endpoints itself, and
GenericCollectionEndpoint<TEntity, TElementEndpoint>, which takes the element endpoint class
as a constructor argument.