AutoPersistHelper Class

Summary

Helper extension method class associated with the AutoPersist related functionality.
Namespace
ReactiveUI
Base Types
  • object
graph BT Type-->Base0["object"] Type["AutoPersistHelper"] class Type type-node

Syntax

public static class AutoPersistHelper

Methods

Name Value Summary
ActOnEveryObject<TItem, TCollection>(TCollection, Action<TItem>, Action<TItem>) IDisposable
Call methods 'onAdd' and 'onRemove' whenever an object is added or removed from a collection. This class correctly handles both when a collection is initialized, as well as when the collection is Reset.
static
ActOnEveryObject<TItem>(IObservable<IChangeSet<TItem>>, Action<TItem>, Action<TItem>) IDisposable
Call methods 'onAdd' and 'onRemove' whenever an object is added or removed from a collection. This class correctly handles both when a collection is initialized, as well as when the collection is Reset.
static
ActOnEveryObject<TItem>(ObservableCollection<TItem>, Action<TItem>, Action<TItem>) IDisposable
Call methods 'onAdd' and 'onRemove' whenever an object is added or removed from a collection. This class correctly handles both when a collection is initialized, as well as when the collection is Reset.
static
ActOnEveryObject<TItem>(ReadOnlyObservableCollection<TItem>, Action<TItem>, Action<TItem>) IDisposable
Call methods 'onAdd' and 'onRemove' whenever an object is added or removed from a collection. This class correctly handles both when a collection is initialized, as well as when the collection is Reset.
static
AutoPersist<T, TDontCare>(T, Func<T, IObservable<Unit>>, IObservable<TDontCare>, TimeSpan?) IDisposable
AutoPersist allows you to automatically call a method when an object has changed, throttling on a certain interval. Note that this object must mark its persistable properties via the [DataMember] attribute. Changes to properties not marked with DataMember will not trigger the object to be saved.
static
AutoPersist<T>(T, Func<T, IObservable<Unit>>, TimeSpan?) IDisposable
AutoPersist allows you to automatically call a method when an object has changed, throttling on a certain interval. Note that this object must mark its persistable properties via the [DataMember] attribute. Changes to properties not marked with DataMember will not trigger the object to be saved.
static
AutoPersistCollection<TItem, TCollection, TDontCare>(TCollection, Func<TItem, IObservable<Unit>>, IObservable<TDontCare>, TimeSpan?) IDisposable
Apply AutoPersistence to all objects in a collection. Items that are no longer in the collection won't be persisted anymore.
static
AutoPersistCollection<TItem, TDontCare>(ObservableCollection<TItem>, Func<TItem, IObservable<Unit>>, IObservable<TDontCare>, TimeSpan?) IDisposable
Apply AutoPersistence to all objects in a collection. Items that are no longer in the collection won't be persisted anymore.
static
AutoPersistCollection<TItem, TDontCare>(ReadOnlyObservableCollection<TItem>, Func<TItem, IObservable<Unit>>, IObservable<TDontCare>, TimeSpan?) IDisposable
Apply AutoPersistence to all objects in a collection. Items that are no longer in the collection won't be persisted anymore.
static
AutoPersistCollection<TItem>(ObservableCollection<TItem>, Func<TItem, IObservable<Unit>>, TimeSpan?) IDisposable
Apply AutoPersistence to all objects in a collection. Items that are no longer in the collection won't be persisted anymore.
static