Class ObservableQueryDemultiplexerEndpointMapper

Namespace
Cratis.Arc.Queries
Assembly
Cratis.Arc.Core.dll

Maps the fixed IObservableQueryDemultiplexer endpoints onto the provided IEndpointMapper.

public static class ObservableQueryDemultiplexerEndpointMapper
Inheritance
ObservableQueryDemultiplexerEndpointMapper
Inherited Members

Fields

SseRoute

The Server-Sent Events endpoint route.

public const string SseRoute = "/.cratis/queries/sse"

Field Value

string

SseSubscribeRoute

The SSE subscribe POST endpoint route.

public const string SseSubscribeRoute = "/.cratis/queries/sse/subscribe"

Field Value

string

SseUnsubscribeRoute

The SSE unsubscribe POST endpoint route.

public const string SseUnsubscribeRoute = "/.cratis/queries/sse/unsubscribe"

Field Value

string

WebSocketRoute

The WebSocket endpoint route.

public const string WebSocketRoute = "/.cratis/queries/ws"

Field Value

string

Methods

MapObservableQueryDemultiplexerEndpoints(IEndpointMapper, IServiceProvider)

Maps the WebSocket, SSE, and SSE subscribe/unsubscribe endpoints for the observable query hub.

public static void MapObservableQueryDemultiplexerEndpoints(this IEndpointMapper mapper, IServiceProvider serviceProvider)

Parameters

mapper IEndpointMapper

The IEndpointMapper to register routes on.

serviceProvider IServiceProvider

The IServiceProvider.