Table of Contents

Method ResolveAsync

Namespace
Oscova.Agents
Assembly
Oscova.Agents.dll

ResolveAsync(string, string, CancellationToken)

Resolves a named field of a credential requested by a tool.

Task<string?> ResolveAsync(string credentialKey, string fieldName, CancellationToken ct = default)

Parameters

credentialKey string

The stable key identifying the credential.

fieldName string

The credential field to read.

ct CancellationToken

A token that can cancel the lookup.

Returns

Task<string?>

The stored field value, or null when the credential or field is unavailable.

ResolveAsync(string, CancellationToken)

Resolves the value of a single-field credential.

Task<string?> ResolveAsync(string credentialKey, CancellationToken ct = default)

Parameters

credentialKey string

The stable key identifying the credential.

ct CancellationToken

A token that can cancel the lookup.

Returns

Task<string?>

The stored credential value, or null when it is unavailable.