Skip to content

})} },System.Nullable{System.TimeSpan})} },System.IObservable{--1})} },System.IObservable{--1},System.Nullable{System.TimeSpan})}

UnsafeAutoPersistHelperMixins.AutoPersist(T, Func>) method

Defined in

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

Applies to

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

Overloads

  1. public static IDisposable AutoPersist<T>(this T @this, Func<T, IObservable<RxVoid>> doPersist) where T : notnull, IReactiveObject

  2. public static IDisposable AutoPersist<T>(this T @this, Func<T, IObservable<RxVoid>> doPersist, TimeSpan? interval) where T : notnull, IReactiveObject

  3. public static IDisposable AutoPersist<T, TDontCare>(this T @this, Func<T, IObservable<RxVoid>> doPersist, IObservable<TDontCare> manualSaveSignal) where T : notnull, IReactiveObject where TDontCare : notnull

  4. public static IDisposable AutoPersist<T, TDontCare>(this T @this, Func<T, IObservable<RxVoid>> doPersist, IObservable<TDontCare> manualSaveSignal, TimeSpan? interval) where T : notnull, IReactiveObject 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 AutoPersist<T>(this T @this, Func<T, IObservable<RxVoid>> doPersist) where T : notnull, IReactiveObject

View source

Type parameters

NameDescription
T--

Parameters

NameTypeDescription
thisT--
doPersistFunc>--

Returns: IDisposable

2. 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 AutoPersist<T>(this T @this, Func<T, IObservable<RxVoid>> doPersist, TimeSpan? interval) where T : notnull, IReactiveObject

View source

Type parameters

NameDescription
T--

Parameters

NameTypeDescription
thisT--
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 AutoPersist<T, TDontCare>(this T @this, Func<T, IObservable<RxVoid>> doPersist, IObservable<TDontCare> manualSaveSignal) where T : notnull, IReactiveObject where TDontCare : notnull

View source

Type parameters

NameDescription
T--
TDontCare--

Parameters

NameTypeDescription
thisT--
doPersistFunc>--
manualSaveSignalIObservable--

Returns: IDisposable

4. 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 AutoPersist<T, TDontCare>(this T @this, Func<T, IObservable<RxVoid>> doPersist, IObservable<TDontCare> manualSaveSignal, TimeSpan? interval) where T : notnull, IReactiveObject where TDontCare : notnull

View source

Type parameters

NameDescription
T--
TDontCare--

Parameters

NameTypeDescription
thisT--
doPersistFunc>--
manualSaveSignalIObservable--
intervalTimeSpan?--

Returns: IDisposable