Пример #1
0
        private async Task <KmsSettings> GetGlobalSettingsAsync()
        {
            var nvc = await _config.GetGlobalConfigurationAsNameValueCollectionAsync(Constants.DataEncryptionSection, Constants.DataEncryptionKey);

            var settings = KmsSettings.Load(nvc ?? new NameValueCollection());

            return(settings);
        }
Пример #2
0
        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);
        }
Пример #3
0
        private KmsSettings GetGlobalSettings()
        {
            var nvc = _config.GetGlobalConfigurationAsNameValueCollection(Constants.DataEncryptionSection, Constants.DataEncryptionKey);

            var settings = KmsSettings.Load(nvc ?? new NameValueCollection());

            return(settings);
        }