public static StorageCredentials StorageCredentials(this IEnvironmentConfiguration config) { if (string.IsNullOrEmpty(config.StorageAccountName()) || string.IsNullOrEmpty(config.StorageAccountAccessKey())) { return(null); } return(new StorageCredentials(config.StorageAccountName(), config.StorageAccountAccessKey())); }
public static string LogStorageAccountAccessKey(this IEnvironmentConfiguration config) => config.PlatformOrConfigCache(KeyLogStorageAccountAccessKey, config.StorageAccountAccessKey());