Interface IStreamingCollectionEndpoint<TEntity, TElementEndpoint>
Endpoint for a collection of TEntity
s 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
TEntity
s.
- 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
longThe 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>