示例#1
0
        public async Task <CredentialsModel> GetCredentialsAsync()
        {
            var secret = await GetSecretAsync(CredentialSecretName).ConfigureAwait(false);

            var values = new DbConnectionStringBuilder
            {
                ConnectionString = secret.Value
            };

            return(new CredentialsModel
            {
                Username = values.ReplGetValueOrDefault <string>("username"),
                Password = values.ReplGetValueOrDefault <string>("password")
            });
        }