AddProviderIfMissing
(
providerId
)
|
Ensures a credential entry exists for the provider.
If missing, creates an empty slot so users can paste the value once. Safe to call repeatedly; the operation is idempotent.
Signature
void AddProviderIfMissing(string providerId) Parameters providerId: stringÂ
Logical provider id, for example "openai.apiKey".
Returns void |
TryGetEntry
(
providerId
, entry
)
|
Attempts to resolve a credential by logical id (for example, "openai.apiKey").
Returns true and sets entry when found; otherwise returns false.
Signature
bool TryGetEntry(string providerId, out Entry entry) Parameters providerId: stringÂ
Logical identifier used by provider editors and runtime code.
entry: out EntryÂ
Resolved secret value, if present and non-empty.
Returns boolÂ
True if an entry exists with a non-empty value; otherwise false.
|
apiKey
: string |
Signature
string apiKey |
providerId
: string |
Signature
string providerId |