})} },System.Func{System.DateTimeOffset,System.Boolean})} },System.Func{System.DateTimeOffset,System.Boolean},System.Nullable{System.DateTimeOffset})} },System.Func{System.DateTimeOffset,System.Boolean},System.Nullable{System.DateTimeOffset},System.Boolean)} },System.Func{System.DateTimeOffset,System.Boolean},System.Nullable{System.DateTimeOffset},System.Boolean,System.Func{--0,System.Boolean})} })} },System.Func{System.DateTimeOffset,System.Boolean})} },System.Func{System.DateTimeOffset,System.Boolean},System.Nullable{System.DateTimeOffset})} },System.Func{System.DateTimeOffset,System.Boolean},System.Nullable{System.DateTimeOffset},System.Boolean)} },System.Func{System.DateTimeOffset,System.Boolean},System.Nullable{System.DateTimeOffset},System.Boolean,System.Func{--0,System.Boolean})}
SerializerExtensions.GetAndFetchLatest(IBlobCache, string, Func>) method¶
Defined in
Type: SerializerExtensions
Namespace: Akavache.Reactive
Assembly: Akavache.Reactive.dll
Applies to
net10.0, net10.0-ios26.0, net10.0-maccatalyst26.0, net10.0-android36.0, net10.0-windows10.0.19041, net10.0-macos26.0, net9.0, net9.0-windows10.0.19041, net8.0, net8.0-windows10.0.19041, net462, net481
Overloads¶
-
public static IObservable<T?> GetAndFetchLatest<T>(this IBlobCache blobCache, string key, Func<IObservable<T>> fetchFunc) where T : notnull -
public static IObservable<T?> GetAndFetchLatest<T>(this IBlobCache blobCache, string key, Func<IObservable<T>> fetchFunc, Func<DateTimeOffset, bool>? fetchPredicate) where T : notnull -
public static IObservable<T?> GetAndFetchLatest<T>(this IBlobCache blobCache, string key, Func<IObservable<T>> fetchFunc, Func<DateTimeOffset, bool>? fetchPredicate, DateTimeOffset? absoluteExpiration) where T : notnull -
public static IObservable<T?> GetAndFetchLatest<T>(this IBlobCache blobCache, string key, Func<IObservable<T>> fetchFunc, Func<DateTimeOffset, bool>? fetchPredicate, DateTimeOffset? absoluteExpiration, bool shouldInvalidateOnError) where T : notnull -
public static IObservable<T?> GetAndFetchLatest<T>(this IBlobCache blobCache, string key, Func<IObservable<T>> fetchFunc, Func<DateTimeOffset, bool>? fetchPredicate, DateTimeOffset? absoluteExpiration, bool shouldInvalidateOnError, Func<T, bool>? cacheValidationPredicate) where T : notnull -
public static IObservable<T?> GetAndFetchLatest<T>(this IBlobCache blobCache, string key, Func<Task<T>> fetchFunc) where T : notnull -
public static IObservable<T?> GetAndFetchLatest<T>(this IBlobCache blobCache, string key, Func<Task<T>> fetchFunc, Func<DateTimeOffset, bool>? fetchPredicate) where T : notnull -
public static IObservable<T?> GetAndFetchLatest<T>(this IBlobCache blobCache, string key, Func<Task<T>> fetchFunc, Func<DateTimeOffset, bool>? fetchPredicate, DateTimeOffset? absoluteExpiration) where T : notnull -
public static IObservable<T?> GetAndFetchLatest<T>(this IBlobCache blobCache, string key, Func<Task<T>> fetchFunc, Func<DateTimeOffset, bool>? fetchPredicate, DateTimeOffset? absoluteExpiration, bool shouldInvalidateOnError) where T : notnull -
public static IObservable<T?> GetAndFetchLatest<T>(this IBlobCache blobCache, string key, Func<Task<T>> fetchFunc, Func<DateTimeOffset, bool>? fetchPredicate, DateTimeOffset? absoluteExpiration, bool shouldInvalidateOnError, Func<T, bool>? cacheValidationPredicate) where T : notnull
1. Overload¶
Attributes: [RequiresUnreferencedCode("Using GetAndFetchLatest requires types to be preserved for serialization.")] [RequiresDynamicCode("Using GetAndFetchLatest requires types to be preserved for serialization.")]
public static IObservable<T?> GetAndFetchLatest<T>(this IBlobCache blobCache, string key, Func<IObservable<T>> fetchFunc) where T : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | -- |
key | string | -- |
fetchFunc | Func | -- |
Returns: IObservable
2. Overload¶
Attributes: [RequiresUnreferencedCode("Using GetAndFetchLatest requires types to be preserved for serialization.")] [RequiresDynamicCode("Using GetAndFetchLatest requires types to be preserved for serialization.")]
public static IObservable<T?> GetAndFetchLatest<T>(this IBlobCache blobCache, string key, Func<IObservable<T>> fetchFunc, Func<DateTimeOffset, bool>? fetchPredicate) where T : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | -- |
key | string | -- |
fetchFunc | Func | -- |
fetchPredicate | Func | -- |
Returns: IObservable
3. Overload¶
Attributes: [RequiresUnreferencedCode("Using GetAndFetchLatest requires types to be preserved for serialization.")] [RequiresDynamicCode("Using GetAndFetchLatest requires types to be preserved for serialization.")]
public static IObservable<T?> GetAndFetchLatest<T>(this IBlobCache blobCache, string key, Func<IObservable<T>> fetchFunc, Func<DateTimeOffset, bool>? fetchPredicate, DateTimeOffset? absoluteExpiration) where T : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | -- |
key | string | -- |
fetchFunc | Func | -- |
fetchPredicate | Func | -- |
absoluteExpiration | DateTimeOffset? | -- |
Returns: IObservable
4. Overload¶
Attributes: [RequiresUnreferencedCode("Using GetAndFetchLatest requires types to be preserved for serialization.")] [RequiresDynamicCode("Using GetAndFetchLatest requires types to be preserved for serialization.")]
public static IObservable<T?> GetAndFetchLatest<T>(this IBlobCache blobCache, string key, Func<IObservable<T>> fetchFunc, Func<DateTimeOffset, bool>? fetchPredicate, DateTimeOffset? absoluteExpiration, bool shouldInvalidateOnError) where T : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | -- |
key | string | -- |
fetchFunc | Func | -- |
fetchPredicate | Func | -- |
absoluteExpiration | DateTimeOffset? | -- |
shouldInvalidateOnError | bool | -- |
Returns: IObservable
5. Overload¶
Attributes: [RequiresUnreferencedCode("Using GetAndFetchLatest requires types to be preserved for serialization.")] [RequiresDynamicCode("Using GetAndFetchLatest requires types to be preserved for serialization.")]
public static IObservable<T?> GetAndFetchLatest<T>(this IBlobCache blobCache, string key, Func<IObservable<T>> fetchFunc, Func<DateTimeOffset, bool>? fetchPredicate, DateTimeOffset? absoluteExpiration, bool shouldInvalidateOnError, Func<T, bool>? cacheValidationPredicate) where T : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | -- |
key | string | -- |
fetchFunc | Func | -- |
fetchPredicate | Func | -- |
absoluteExpiration | DateTimeOffset? | -- |
shouldInvalidateOnError | bool | -- |
cacheValidationPredicate | Func | -- |
Returns: IObservable
6. Overload¶
Attributes: [RequiresUnreferencedCode("Using GetAndFetchLatest requires types to be preserved for serialization.")] [RequiresDynamicCode("Using GetAndFetchLatest requires types to be preserved for serialization.")]
public static IObservable<T?> GetAndFetchLatest<T>(this IBlobCache blobCache, string key, Func<Task<T>> fetchFunc) where T : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | -- |
key | string | -- |
fetchFunc | Func | -- |
Returns: IObservable
7. Overload¶
Attributes: [RequiresUnreferencedCode("Using GetAndFetchLatest requires types to be preserved for serialization.")] [RequiresDynamicCode("Using GetAndFetchLatest requires types to be preserved for serialization.")]
public static IObservable<T?> GetAndFetchLatest<T>(this IBlobCache blobCache, string key, Func<Task<T>> fetchFunc, Func<DateTimeOffset, bool>? fetchPredicate) where T : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | -- |
key | string | -- |
fetchFunc | Func | -- |
fetchPredicate | Func | -- |
Returns: IObservable
8. Overload¶
Attributes: [RequiresUnreferencedCode("Using GetAndFetchLatest requires types to be preserved for serialization.")] [RequiresDynamicCode("Using GetAndFetchLatest requires types to be preserved for serialization.")]
public static IObservable<T?> GetAndFetchLatest<T>(this IBlobCache blobCache, string key, Func<Task<T>> fetchFunc, Func<DateTimeOffset, bool>? fetchPredicate, DateTimeOffset? absoluteExpiration) where T : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | -- |
key | string | -- |
fetchFunc | Func | -- |
fetchPredicate | Func | -- |
absoluteExpiration | DateTimeOffset? | -- |
Returns: IObservable
9. Overload¶
Attributes: [RequiresUnreferencedCode("Using GetAndFetchLatest requires types to be preserved for serialization.")] [RequiresDynamicCode("Using GetAndFetchLatest requires types to be preserved for serialization.")]
public static IObservable<T?> GetAndFetchLatest<T>(this IBlobCache blobCache, string key, Func<Task<T>> fetchFunc, Func<DateTimeOffset, bool>? fetchPredicate, DateTimeOffset? absoluteExpiration, bool shouldInvalidateOnError) where T : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | -- |
key | string | -- |
fetchFunc | Func | -- |
fetchPredicate | Func | -- |
absoluteExpiration | DateTimeOffset? | -- |
shouldInvalidateOnError | bool | -- |
Returns: IObservable
10. Overload¶
Attributes: [RequiresUnreferencedCode("Using GetAndFetchLatest requires types to be preserved for serialization.")] [RequiresDynamicCode("Using GetAndFetchLatest requires types to be preserved for serialization.")]
public static IObservable<T?> GetAndFetchLatest<T>(this IBlobCache blobCache, string key, Func<Task<T>> fetchFunc, Func<DateTimeOffset, bool>? fetchPredicate, DateTimeOffset? absoluteExpiration, bool shouldInvalidateOnError, Func<T, bool>? cacheValidationPredicate) where T : notnull
Type parameters
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | -- |
key | string | -- |
fetchFunc | Func | -- |
fetchPredicate | Func | -- |
absoluteExpiration | DateTimeOffset? | -- |
shouldInvalidateOnError | bool | -- |
cacheValidationPredicate | Func | -- |
Returns: IObservable