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 individual elements in the collection.

TElementEndpoint

The type of IEndpoint to provide for individual TEntitys.

Inherited Members
Extension Methods

Remarks

Use the more constrained IStreamingCollectionEndpoint<TEntity> when possible.

Properties

PollingInterval

The interval in which to send requests to the server. The server can modify this value using the Retry-After header.

TimeSpan PollingInterval { get; set; }

Property Value

TimeSpan

Methods

GetObservable(long)

Provides an observable stream of elements.

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>

A cold observable. HTTP communication only starts on Subscribe(IObserver<T>).