Table of Contents

Class StreamingBuilder

Namespace
TypedRest.CodeGeneration.TypeScript.Endpoints.Reactive
Assembly
TypedRest.CodeGeneration.TypeScript.dll

Builds TypeScript code for StreamingEndpoints, degrading them to plain endpoints.

public class StreamingBuilder : BuilderBase<StreamingEndpoint>, IBuilder<StreamingEndpoint>, IBuilder
Inheritance
object
StreamingBuilder
Implements
Inherited Members

Methods

GetBase(string, StreamingEndpoint, 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, StreamingEndpoint endpoint, IEndpointGenerator generator)

Parameters

key string
endpoint StreamingEndpoint
generator IEndpointGenerator

Returns

(TsIdentifier baseType, IEnumerable<ITsType> types, IEnumerable<TsExpression> extraArguments)

GetBaseType(StreamingEndpoint, IEndpointGenerator)

Returns the TypedRest type the endpoint derives from.

protected override TsIdentifier GetBaseType(StreamingEndpoint endpoint, IEndpointGenerator generator)

Parameters

endpoint StreamingEndpoint
generator IEndpointGenerator

Returns

TsIdentifier