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
SseSubscribeRoute
The SSE subscribe POST endpoint route.
public const string SseSubscribeRoute = "/.cratis/queries/sse/subscribe"
Field Value
SseUnsubscribeRoute
The SSE unsubscribe POST endpoint route.
public const string SseUnsubscribeRoute = "/.cratis/queries/sse/unsubscribe"
Field Value
WebSocketRoute
The WebSocket endpoint route.
public const string WebSocketRoute = "/.cratis/queries/ws"
Field Value
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
mapperIEndpointMapperThe IEndpointMapper to register routes on.
serviceProviderIServiceProviderThe IServiceProvider.