Class StreamingEndpoint
- Namespace
- TypedRest.CodeGeneration.Endpoints.Reactive
- Assembly
- TypedRest.CodeGeneration.dll
Endpoint for a stream of entities using a persistent HTTP connection.
public class StreamingEndpoint : Endpoint, IEndpoint, IOpenApiSerializable, IOpenApiElement, IOpenApiExtension
- Inheritance
-
objectStreamingEndpoint
- Implements
- Inherited Members
Properties
Kind
The kind/type of endpoint.
public override string Kind { get; }
Property Value
Schema
Schema describing the representation of individual elements in the stream.
public OpenApiSchema? Schema { get; set; }
Property Value
Separator
The character sequence used to detect that a new element starts in an HTTP stream.
public string? Separator { get; set; }
Property Value
Methods
Parse(OpenApiObject, IEndpointParser)
Fills the endpoint with information parsed from an OpenAPI Object.
public override void Parse(OpenApiObject data, IEndpointParser parser)
Parameters
dataOpenApiObjectThe OpenAPI Object to parse.
parserIEndpointParserThe endpoint parser to use for parsing child objects.
ResolveReferences(OpenApiComponents)
Resolves OpenApiReferences.
public override void ResolveReferences(OpenApiComponents components)
Parameters
componentsOpenApiComponentsThe components that references can point to.
WriteBody(IOpenApiWriter, OpenApiSpecVersion)
Writes this endpoint description to an OpenAPI document.
protected override void WriteBody(IOpenApiWriter writer, OpenApiSpecVersion specVersion)
Parameters
writerIOpenApiWriterThe write to write to.
specVersionOpenApiSpecVersionThe OpenAPI Spec version to use.