Table of Contents

Method GetAsync

Namespace
BpNexT.Actions.Abstractions
Assembly
BpNexT.Actions.Abstractions.dll

GetAsync(string, CancellationToken)

The value for name, or null when it was never set.

Task<string?> GetAsync(string name, CancellationToken cancellationToken = default)

Parameters

name string
cancellationToken CancellationToken

Returns

Task<string>

GetAsync<T>(string, CancellationToken)

The value parsed to T (bool, the integer/floating types, or enum), or null when unset. Throws when a present value cannot be parsed.

Task<T?> GetAsync<T>(string name, CancellationToken cancellationToken = default)

Parameters

name string
cancellationToken CancellationToken

Returns

Task<T>

Type Parameters

T