ReferenceAPI map
API map
Every public type and member of NCode.LiveCollections, with what it does and the page that explains it.
This page lists every public type and member of NCode.LiveCollections, grouped by what they are for. Each type links to the guide or concept page that explains it.
Registration and factories
Section titled “Registration and factories”DefaultRegistration: registers the default factories in a service collection. See the quick start.AddLiveCollections: adds the default data source factory and provider factory, andTimeProvider.Systemunless aTimeProvideris registered.
ICollectionDataSourceFactory: creates data sources. See combine data sources.CreateComposite: combines several data sources into one.CreateObservable: wraps an observable collection.CreatePeriodicPolling: polls a remote source on an interval. See poll a remote source.CreateStatic: wraps a fixed collection.
DefaultCollectionDataSourceFactory: the default implementation of the data source factory.CreateComposite: combines several data sources into one.CreateObservable: wraps an observable collection.CreatePeriodicPolling: polls a remote source on an interval.CreateStatic: wraps a fixed collection.DefaultCollectionDataSourceFactory: the constructors, without a clock forTimeProvider.System, or with theTimeProviderits polling sources tick on.
ICollectionProviderFactory: creates providers. See how a provider rebuilds.Create: creates a provider from a collection factory and one or more data sources.
DefaultCollectionProviderFactory: the default implementation of the provider factory.Create: creates a provider from a collection factory and one or more data sources.DefaultCollectionProviderFactory: the parameterless constructor.
Providers
Section titled “Providers”ICollectionProvider<TItem, TCollection>: exposes the current collection and its change token. See how a provider rebuilds.Collection: the current collection, rebuilt when a source changes.
BaseCollectionProvider<TItem, TCollection>: the base class for providers that build their collection from data sources. See react to changes.BaseCollectionProvider: the constructors, which take one or more data sources and optional extra change token producers.Collection: the current collection.CreateCollection: the abstract method that builds the collection from the items.DisposeAsync: disposes the provider and the data sources it owns. See own and dispose.DisposeAsyncCore: the virtual method a subclass overrides to release its own resources.GetChangeToken: returns a token that signals the next change.
CollectionProvider<TItem, TCollection>: a provider that builds its collection with a function.CollectionProvider: the constructors, which take a collection factory and one or more data sources.CreateCollection: calls the collection factory.
CollectionProviderExtensions: extensions on providers.AsDataSource: presents a provider of plain enumerables as a data source, so it can feed another provider.
Data sources
Section titled “Data sources”ICollectionDataSource<T>: supplies a collection and signals when it changes. See implement a data source.Collection: the current items.
IDisposableCollectionDataSource<T>: a data source that is disposed synchronously. See data sources and ownership.IAsyncDisposableCollectionDataSource<T>: a data source that is disposed asynchronously.StaticCollectionDataSource<T>: a data source over a fixed collection.Collection: the items it was given.Dispose: disposes the items when the source owns them.GetChangeToken: returns a token that never changes.StaticCollectionDataSource: the constructor.
ObservableCollectionDataSource<T>: a data source over an observable collection.Collection: the current items.Dispose: stops listening, and disposes the items when the source owns them.GetChangeToken: returns a token that signals the next change.ObservableCollectionDataSource: the constructor.
CompositeCollectionDataSource<T>: a data source that combines several data sources. See combine data sources.Collection: the combined items.CombineFunc: the function that combines the sources’ items.CompositeCollectionDataSource: the constructors.DisposeAsync: disposes the sources it owns.GetChangeToken: returns a token that signals when any source changes.Owns: whether the composite disposes its sources.
PeriodicPollingCollectionDataSource<TItem, TState>: a data source that refreshes its items on an interval. See periodic polling.Collection: the current items.DisposeAsync: stops polling.GetChangeToken: returns a token that signals the next change.PeriodicPollingCollectionDataSource: the constructor, whose optionaltimeProvideris the clock its timer ticks on.
Periodic polling
Section titled “Periodic polling”RefreshCollectionCallback<TItem, TState>: the delegate a polling source calls to refresh. See poll a remote source.HandleExceptionCallback: the delegate a polling source calls when a refresh throws.RefreshCollectionResult<TItem>: the outcome of one refresh.IsChanged: whether the refresh produced a new collection.IsUnchanged: whether the refresh left the collection as it was.NewCollection: the new collection, when there is one.RefreshCollectionResult: the constructors.
RefreshCollectionResultFactory: creates refresh results.Changed: a result that carries a new collection.Unchanged: a result that leaves the collection as it was.
Change tokens
Section titled “Change tokens”ISupportChangeToken: anything that can hand out a change token.GetChangeToken: returns a token that signals the next change.
INullChangeToken: marks a token that never changes.NullChangeToken: a token that never changes.ActiveChangeCallbacks: always false.HasChanged: always false.NullChangeToken: the constructor.RegisterChangeCallback: registers nothing and returns a disposable that does nothing.Singleton: the shared instance.