Table of Contents

Class ClientEnumerableObservable<T>

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

Represents an implementation of IClientEnumerableObservable.

public class ClientEnumerableObservable<T> : IClientEnumerableObservable

Type Parameters

T

Type of data being observed.

Inheritance
ClientEnumerableObservable<T>
Implements
Inherited Members

Constructors

ClientEnumerableObservable(IAsyncEnumerable<T>, JsonOptions, IWebSocketConnectionHandler, ILogger<ClientEnumerableObservable<T>>)

Represents an implementation of IClientEnumerableObservable.

public ClientEnumerableObservable(IAsyncEnumerable<T> enumerable, JsonOptions jsonOptions, IWebSocketConnectionHandler webSocketConnectionHandler, ILogger<ClientEnumerableObservable<T>> logger)

Parameters

enumerable IAsyncEnumerable<T>

The IAsyncEnumerable<T> to use for streaming.

jsonOptions JsonOptions

The JsonOptions.

webSocketConnectionHandler IWebSocketConnectionHandler

The IWebSocketConnectionHandler.

logger ILogger<ClientEnumerableObservable<T>>

The ILogger.

Methods

HandleConnection(ActionExecutingContext)

Handle the action context and result from the action.

public Task HandleConnection(ActionExecutingContext context)

Parameters

context ActionExecutingContext

ActionExecutingContext to handle for.

Returns

Task

A Task representing the asynchronous operation.