})} },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.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¶
-
public static IDisposable AutoPersist<T>(this T @this, Func<T, IObservable<Unit>> doPersist) where T : notnull, IReactiveObject -
public static IDisposable AutoPersist<T>(this T @this, Func<T, IObservable<Unit>> doPersist, TimeSpan? interval) where T : notnull, IReactiveObject -
public static IDisposable AutoPersist<T, TDontCare>(this T @this, Func<T, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal) where T : notnull, IReactiveObject where TDontCare : notnull -
public static IDisposable AutoPersist<T, TDontCare>(this T @this, Func<T, IObservable<Unit>> 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<Unit>> doPersist) where T : notnull, IReactiveObject
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
this | T | -- |
doPersist | Func | -- |
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<Unit>> doPersist, TimeSpan? interval) where T : notnull, IReactiveObject
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
this | T | -- |
doPersist | Func | -- |
interval | TimeSpan? | -- |
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<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal) where T : notnull, IReactiveObject where TDontCare : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
TDontCare | -- |
Parameters
| Name | Type | Description |
|---|---|---|
this | T | -- |
doPersist | Func | -- |
manualSaveSignal | IObservable | -- |
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<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, TimeSpan? interval) where T : notnull, IReactiveObject where TDontCare : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
TDontCare | -- |
Parameters
| Name | Type | Description |
|---|---|---|
this | T | -- |
doPersist | Func | -- |
manualSaveSignal | IObservable | -- |
interval | TimeSpan? | -- |
Returns: IDisposable