Table of Contents

Interface IStreamingCollectionEndpoint<TEntity, TElementEndpoint>

Namespace
TypedRest.Endpoints.Reactive
Assembly
TypedRest.Reactive.dll

Endpoint for a collection of TEntitys observable as an append-only stream.

public interface IStreamingCollectionEndpoint<TEntity, out TElementEndpoint> : ICollectionEndpoint<TEntity, TElementEndpoint>, IIndexerEndpoint<TElementEndpoint>, IEndpoint where TEntity : class where TElementEndpoint : IElementEndpoint<TEntity>

Type Parameters

TEntity

The type of entity the endpoint represents.

TElementEndpoint

The type of IEndpoint to provide for individual TEntitys.

Inherited Members
Extension Methods

Remarks

Use the more constrained IStreamingCollectionEndpoint<TEntity> when possible.

Methods

GetObservable(long)

Provides an observable stream of elements. The observable is cold; HTTP communication only starts on Subscribe(IObserver<T>).

IObservable<TEntity> GetObservable(long startIndex = 0)

Parameters

startIndex long

The index of the first element to return in the stream. Use negative values to start counting from the end of the stream.

Returns

IObservable<TEntity>