Interface IPollingEndpoint<TEntity>
Endpoint for a resource that can be polled for state changes.
public interface IPollingEndpoint<TEntity> : IElementEndpoint<TEntity>, IElementEndpoint, IEndpoint where TEntity : class
Type Parameters
TEntity
The type of entity the endpoint represents.
- Inherited Members
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()
Provides an observable stream of entity states. Compares entities using Equals(object) to detect changes.
IObservable<TEntity> GetObservable()
Returns
- IObservable<TEntity>