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 individual elements in the collection.
TElementEndpoint
The type of IEndpoint to provide for individual
TEntity
s.
- 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
Methods
GetObservable(long)
Provides an observable stream of elements.
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>
A cold observable. HTTP communication only starts on Subscribe(IObserver<T>).