Beispiel #1
0
        public static StorageCredentials AzureStorageCredentials(this IEnvironmentConfiguration config, bool throwExceptionIfNotFound = true)
        {
            if (string.IsNullOrEmpty(config.AzureStorageAccountName(throwExceptionIfNotFound)) ||
                string.IsNullOrEmpty(config.AzureStorageAccountAccessKey(throwExceptionIfNotFound)))
            {
                return(null);
            }

            return(new StorageCredentials(config.AzureStorageAccountName(), config.AzureStorageAccountAccessKey()));
        }