Table of Contents

Class SseStreamingBuilder

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

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

public class SseStreamingBuilder : BuilderBase<SseStreamingEndpoint>, IBuilder<SseStreamingEndpoint>, IBuilder
Inheritance
object
SseStreamingBuilder
Implements
Inherited Members

Methods

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

Parameters

key string
endpoint SseStreamingEndpoint
generator IEndpointGenerator

Returns

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

GetBaseType(SseStreamingEndpoint, IEndpointGenerator)

Returns the TypedRest type the endpoint derives from.

protected override TsIdentifier GetBaseType(SseStreamingEndpoint endpoint, IEndpointGenerator generator)

Parameters

endpoint SseStreamingEndpoint
generator IEndpointGenerator

Returns

TsIdentifier