Skip to content

,System.Func{--0,System.IObservable{System.Reactive.Unit}})} ,System.Func{--0,System.IObservable{System.Reactive.Unit}},System.Nullable{System.TimeSpan})} ,System.Func{--0,System.IObservable{System.Reactive.Unit}},System.IObservable{--1})} ,System.Func{--0,System.IObservable{System.Reactive.Unit}},System.IObservable{--1},System.Nullable{System.TimeSpan})} ,System.Func{--0,System.IObservable{System.Reactive.Unit}},System.IObservable{--1})} ,System.Func{--0,System.IObservable{System.Reactive.Unit}},System.IObservable{--1},System.Nullable{System.TimeSpan})} },System.IObservable{--2})} },System.IObservable{--2},System.Nullable{System.TimeSpan})}

UnsafeAutoPersistHelperMixins.AutoPersistCollection(ObservableCollection, Func>) method

Defined in

Type: UnsafeAutoPersistHelperMixins Namespace: ReactiveUI.Reactive Assembly: ReactiveUI.Unsafe.Reactive.dll

Applies to

net11.0, net11.0-android37.0, net11.0-tvos27.2, net11.0-macos27.2, net11.0-maccatalyst27.2, net11.0-ios27.2, net10.0, net10.0-tvos26.0, net10.0-android36.0, net10.0-maccatalyst26.0, net10.0-ios26.0, net10.0-macos26.0, net48, net47, net472, net471, net481

Overloads

  1. public static IDisposable AutoPersistCollection<TItem>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist) where TItem : notnull, IReactiveObject

  2. public static IDisposable AutoPersistCollection<TItem>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, TimeSpan? interval) where TItem : notnull, IReactiveObject

  3. public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal) where TItem : notnull, IReactiveObject where TDontCare : notnull

  4. public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, TimeSpan? interval) where TItem : notnull, IReactiveObject where TDontCare : notnull

  5. public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ReadOnlyObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal) where TItem : notnull, IReactiveObject where TDontCare : notnull

  6. public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ReadOnlyObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, TimeSpan? interval) where TItem : notnull, IReactiveObject where TDontCare : notnull

  7. public static IDisposable AutoPersistCollection<TItem, TCollection, TDontCare>(this TCollection @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal) where TItem : notnull, IReactiveObject where TCollection : notnull, INotifyCollectionChanged, IEnumerable<TItem> where TDontCare : notnull

  8. public static IDisposable AutoPersistCollection<TItem, TCollection, TDontCare>(this TCollection @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, TimeSpan? interval) where TItem : notnull, IReactiveObject where TCollection : notnull, INotifyCollectionChanged, IEnumerable<TItem> where TDontCare : notnull

1. Overload

Attributes: [RequiresUnreferencedCode("AutoPersist may reflect over the runtime type; prefer the AutoPersistMetadata overloads for trimming/AOT.")] [RequiresDynamicCode("AutoPersist may reflect over the runtime type; prefer the AutoPersistMetadata overloads for trimming/AOT.")]

public static IDisposable AutoPersistCollection<TItem>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist) where TItem : notnull, IReactiveObject

View source

Type parameters

NameDescription
TItem--

Parameters

NameTypeDescription
thisObservableCollection--
doPersistFunc>--

Returns: IDisposable

2. Overload

Attributes: [RequiresUnreferencedCode("AutoPersistCollection may reflect over runtime item types via AutoPersist; prefer the overloads that accept AutoPersistMetadata or a metadata provider.")] [RequiresDynamicCode("AutoPersistCollection may reflect over runtime item types via AutoPersist; prefer the overloads that accept AutoPersistMetadata or a metadata provider.")]

public static IDisposable AutoPersistCollection<TItem>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, TimeSpan? interval) where TItem : notnull, IReactiveObject

View source

Type parameters

NameDescription
TItem--

Parameters

NameTypeDescription
thisObservableCollection--
doPersistFunc>--
intervalTimeSpan?--

Returns: IDisposable

3. Overload

Attributes: [RequiresUnreferencedCode("AutoPersist may reflect over the runtime type; prefer the AutoPersistMetadata overloads for trimming/AOT.")] [RequiresDynamicCode("AutoPersist may reflect over the runtime type; prefer the AutoPersistMetadata overloads for trimming/AOT.")]

public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal) where TItem : notnull, IReactiveObject where TDontCare : notnull

View source

Type parameters

NameDescription
TItem--
TDontCare--

Parameters

NameTypeDescription
thisObservableCollection--
doPersistFunc>--
manualSaveSignalIObservable--

Returns: IDisposable

4. Overload

Attributes: [RequiresUnreferencedCode("AutoPersistCollection may reflect over runtime item types via AutoPersist; prefer the overloads that accept AutoPersistMetadata or a metadata provider.")] [RequiresDynamicCode("AutoPersistCollection may reflect over runtime item types via AutoPersist; prefer the overloads that accept AutoPersistMetadata or a metadata provider.")]

public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, TimeSpan? interval) where TItem : notnull, IReactiveObject where TDontCare : notnull

View source

Type parameters

NameDescription
TItem--
TDontCare--

Parameters

NameTypeDescription
thisObservableCollection--
doPersistFunc>--
manualSaveSignalIObservable--
intervalTimeSpan?--

Returns: IDisposable

5. Overload

Attributes: [RequiresUnreferencedCode("AutoPersist may reflect over the runtime type; prefer the AutoPersistMetadata overloads for trimming/AOT.")] [RequiresDynamicCode("AutoPersist may reflect over the runtime type; prefer the AutoPersistMetadata overloads for trimming/AOT.")]

public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ReadOnlyObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal) where TItem : notnull, IReactiveObject where TDontCare : notnull

View source

Type parameters

NameDescription
TItem--
TDontCare--

Parameters

NameTypeDescription
thisReadOnlyObservableCollection--
doPersistFunc>--
manualSaveSignalIObservable--

Returns: IDisposable

6. Overload

Attributes: [RequiresUnreferencedCode("AutoPersistCollection may reflect over runtime item types via AutoPersist; prefer the overloads that accept AutoPersistMetadata or a metadata provider.")] [RequiresDynamicCode("AutoPersistCollection may reflect over runtime item types via AutoPersist; prefer the overloads that accept AutoPersistMetadata or a metadata provider.")]

public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ReadOnlyObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, TimeSpan? interval) where TItem : notnull, IReactiveObject where TDontCare : notnull

View source

Type parameters

NameDescription
TItem--
TDontCare--

Parameters

NameTypeDescription
thisReadOnlyObservableCollection--
doPersistFunc>--
manualSaveSignalIObservable--
intervalTimeSpan?--

Returns: IDisposable

7. Overload

Attributes: [RequiresUnreferencedCode("AutoPersist may reflect over the runtime type; prefer the AutoPersistMetadata overloads for trimming/AOT.")] [RequiresDynamicCode("AutoPersist may reflect over the runtime type; prefer the AutoPersistMetadata overloads for trimming/AOT.")]

public static IDisposable AutoPersistCollection<TItem, TCollection, TDontCare>(this TCollection @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal) where TItem : notnull, IReactiveObject where TCollection : notnull, INotifyCollectionChanged, IEnumerable<TItem> where TDontCare : notnull

View source

Type parameters

NameDescription
TItem--
TCollection--
TDontCare--

Parameters

NameTypeDescription
thisTCollection--
doPersistFunc>--
manualSaveSignalIObservable--

Returns: IDisposable

8. Overload

Attributes: [RequiresUnreferencedCode("AutoPersistCollection may reflect over runtime item types via AutoPersist; prefer the overloads that accept AutoPersistMetadata or a metadata provider.")] [RequiresDynamicCode("AutoPersistCollection may reflect over runtime item types via AutoPersist; prefer the overloads that accept AutoPersistMetadata or a metadata provider.")]

public static IDisposable AutoPersistCollection<TItem, TCollection, TDontCare>(this TCollection @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, TimeSpan? interval) where TItem : notnull, IReactiveObject where TCollection : notnull, INotifyCollectionChanged, IEnumerable<TItem> where TDontCare : notnull

View source

Type parameters

NameDescription
TItem--
TCollection--
TDontCare--

Parameters

NameTypeDescription
thisTCollection--
doPersistFunc>--
manualSaveSignalIObservable--
intervalTimeSpan?--

Returns: IDisposable