Table of Contents

Class PollingBuilder

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

Builds TypeScript code for PollingEndpoints, degrading them to plain element endpoints.

public class PollingBuilder : BuilderBase<PollingEndpoint>, IBuilder<PollingEndpoint>, IBuilder
Inheritance
object
PollingBuilder
Implements
Inherited Members

Methods

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

Parameters

key string
endpoint PollingEndpoint
generator IEndpointGenerator

Returns

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

GetBaseType(PollingEndpoint, IEndpointGenerator)

Returns the TypedRest type the endpoint derives from.

protected override TsIdentifier GetBaseType(PollingEndpoint endpoint, IEndpointGenerator generator)

Parameters

endpoint PollingEndpoint
generator IEndpointGenerator

Returns

TsIdentifier