Table of Contents

Interface IClientObservable

Namespace
Cratis.Applications.Queries
Assembly
Cratis.Applications.dll

Defines an observable that is observed by a connected client.

public interface IClientObservable
Extension Methods

Methods

GetAsynchronousEnumerator(CancellationToken)

Get an async enumerator for the observable.

object GetAsynchronousEnumerator(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Optional CancellationToken.

Returns

object

Async enumerator.

HandleConnection(HttpContext)

Handle the HTTP context for minimal API endpoints.

Task HandleConnection(HttpContext httpContext)

Parameters

httpContext HttpContext

HttpContext to handle for.

Returns

Task

A Task representing the asynchronous operation.

HandleConnection(ActionExecutingContext)

Handle the action context and result from the action.

Task HandleConnection(ActionExecutingContext context)

Parameters

context ActionExecutingContext

ActionExecutingContext to handle for.

Returns

Task

A Task representing the asynchronous operation.