示例#1
0
        public void SaveSettings(IDictionary <string, string> storageAccountSettingsList, int storageAccountId, DateTime storageAccountStamp)
        {
            UpdateResult updateResult = _storageAccountSettingsRepository.SaveSettings(storageAccountSettingsList, storageAccountId, storageAccountStamp);

#warning make new exceptions
            switch (updateResult)
            {
            case UpdateResult.Stalled:
                throw new StaleObjectException(string.Format(CultureInfo.InvariantCulture, "Error saving settings for storage account {0}, object stalled", storageAccountId));

            case UpdateResult.ItemNotExists:
                throw new ObjectNotExistsException(string.Format(CultureInfo.InvariantCulture, "Error saving settings for storage account {0}, account not found", storageAccountId));
            }
        }