Skip to content

Commit 01ddfc1

Browse files
Use default options for Azure clients. ConfigurationClient doesn't accept null. (#209)
1 parent 4f96d9e commit 01ddfc1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Azure/AzureKeyVaultConfigBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public override string GetValue(string key)
169169
/// Gets a <see cref="SecretClientOptions"/> to initialize the Key Vault SecretClient with. This defaults to <see cref="null"/>.
170170
/// </summary>
171171
/// <returns>A token credential.</returns>
172-
protected virtual SecretClientOptions GetSecretClientOptions() => null;
172+
protected virtual SecretClientOptions GetSecretClientOptions() => new SecretClientOptions();
173173

174174

175175

src/AzureAppConfig/AzureAppConfigurationBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public override ICollection<KeyValuePair<string, string>> GetAllValues(string pr
230230
/// Gets a <see cref="ConfigurationClientOptions"/> to initialize the Key Vault SecretClient with. This defaults to <see cref="null"/>.
231231
/// </summary>
232232
/// <returns>A token credential.</returns>
233-
protected virtual ConfigurationClientOptions GetConfigurationClientOptions() => null;
233+
protected virtual ConfigurationClientOptions GetConfigurationClientOptions() => new ConfigurationClientOptions();
234234

235235
private async Task<string> GetValueAsync(string key)
236236
{

0 commit comments

Comments
 (0)