DPB2Class · 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 : class
Reference: DPB2 0.4.5.103Compare the DPB1 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

5 declared here

RetryingLazy

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

Creates a new RetryingLazy instance using the supplied arguments.

Parameters

loader
Parameter type: Func<T>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies loader.

validator
Parameter type: Func<T, bool>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies validator.

emptyValue
Parameter type: TNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies empty value.

Invalidate

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

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

Return type: voidNo return value.

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.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

value
Parameter type: TNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

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 type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

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.

Value type: TNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

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