DPB1Class · Utilities and settings

RetryingLazy<T>

Provides retrying lazy data and the operations listed below. Related types link to the values this API consumes or returns.

Namespace: DreamPoeBot.Common

public class RetryingLazy<T> where T : classView DPB2 version →

Members and overloads

5 results

RetryingLazy

MethodLink ↗
public RetryingLazy<T>.RetryingLazy(Func<T> loader, Func<T, bool> validator, T emptyValue)

Creates a new RetryingLazy instance using the supplied arguments.

loaderFunc<T>
Specifies loader.
validatorFunc<T, bool>
Specifies validator.
emptyValueT
Specifies empty value.

Invalidate

MethodLink ↗
public void RetryingLazy<T>.Invalidate()

Invalida il valore reale. Al prossimo accesso verrà ricaricato.

TryGetValue

MethodLink ↗
public bool RetryingLazy<T>.TryGetValue(out T value)

Prova a caricare il valore. Restituisce true soltanto se esiste un valore reale e valido. In caso di fallimento, value contiene sempre l'oggetto vuoto.

valueT
Receives value.

Returns: True when the request succeeds; read any out parameters only after checking the result.

HasValue

PropertyLink ↗
public bool RetryingLazy<T>.HasValue { get; }

Whether value is present.

Value

PropertyLink ↗
public T RetryingLazy<T>.Value { get; }

Restituisce il valore valido oppure l'oggetto vuoto. Se il valore non è ancora disponibile, prova comunque a caricarlo.

DPB1 0.3.29.47 · Reference reviewed 2026-10-02. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.