private async Task <KmsSettings> GetGlobalSettingsAsync() { var nvc = await _config.GetGlobalConfigurationAsNameValueCollectionAsync(Constants.DataEncryptionSection, Constants.DataEncryptionKey); var settings = KmsSettings.Load(nvc ?? new NameValueCollection()); return(settings); }
private async Task <KmsSettings> GetTenantSettingsAsync(string tenantId) { var nvc = await _config.GetTenantConfigurationAsNameValueCollectionAsync(tenantId, Constants.DataEncryptionSection, Constants.DataEncryptionKey); var settings = KmsSettings.Load(nvc ?? new NameValueCollection()); return(settings); }
private KmsSettings GetGlobalSettings() { var nvc = _config.GetGlobalConfigurationAsNameValueCollection(Constants.DataEncryptionSection, Constants.DataEncryptionKey); var settings = KmsSettings.Load(nvc ?? new NameValueCollection()); return(settings); }