using AIStudio.Tools.Services; namespace AIStudio.Tools.DataBackup; /// /// Asks the runtime whether the OS keyring holds a secret. It only tries, so a missing secret logs no error. /// /// The runtime. public sealed class RustStoredSecrets(RustService rustService) : IStoredSecrets { /// public async Task HasAPIKeyAsync(ISecretId secretId, SecretStoreType storeType) => (await rustService.GetAPIKey(secretId, storeType, isTrying: true)).Success; /// public async Task HasSecretAsync(ISecretId secretId, SecretStoreType storeType) => (await rustService.GetSecret(secretId, storeType, isTrying: true)).Success; }