Skip to content

Commit 66bd907

Browse files
add activity source
1 parent 2de6c93 commit 66bd907

File tree

3 files changed

+211
-191
lines changed

3 files changed

+211
-191
lines changed

src/Microsoft.Extensions.Configuration.AzureAppConfiguration/AzureAppConfigurationOptions.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Licensed under the MIT license.
33
//
44
using Azure.Core;
5-
using Azure.Core.Pipeline;
5+
using Azure.Core.Pipeline;
66
using Azure.Data.AppConfiguration;
77
using Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureKeyVault;
88
using Microsoft.Extensions.Configuration.AzureAppConfiguration.Extensions;
@@ -11,7 +11,7 @@
1111
using System;
1212
using System.Collections.Generic;
1313
using System.Linq;
14-
using System.Net.Http;
14+
using System.Net.Http;
1515
using System.Threading.Tasks;
1616

1717
namespace Microsoft.Extensions.Configuration.AzureAppConfiguration
@@ -25,7 +25,7 @@ public class AzureAppConfigurationOptions
2525
private const int MaxRetries = 2;
2626
private static readonly TimeSpan MaxRetryDelay = TimeSpan.FromMinutes(1);
2727
private static readonly TimeSpan NetworkTimeout = TimeSpan.FromSeconds(10);
28-
private static readonly KeyValueSelector DefaultQuery = new KeyValueSelector { KeyFilter = KeyFilter.Any, LabelFilter = LabelFilter.Null };
28+
private static readonly KeyValueSelector DefaultQuery = new KeyValueSelector { KeyFilter = KeyFilter.Any, LabelFilter = LabelFilter.Null };
2929

3030
private List<KeyValueWatcher> _individualKvWatchers = new List<KeyValueWatcher>();
3131
private List<KeyValueWatcher> _ffWatchers = new List<KeyValueWatcher>();
@@ -49,6 +49,11 @@ public class AzureAppConfigurationOptions
4949
/// </summary>
5050
public bool LoadBalancingEnabled { get; set; }
5151

52+
/// <summary>
53+
/// An optional timespan value to set the minimum backoff duration to a value other than the default.
54+
/// </summary>
55+
public TimeSpan MinBackoffDuration { get; set; } = FailOverConstants.MinBackoffDuration;
56+
5257
/// <summary>
5358
/// The list of connection strings used to connect to an Azure App Configuration store and its replicas.
5459
/// </summary>
@@ -120,11 +125,6 @@ internal IEnumerable<IKeyValueAdapter> Adapters
120125
/// </summary>
121126
internal IConfigurationSettingPageIterator ConfigurationSettingPageIterator { get; set; }
122127

123-
/// <summary>
124-
/// An optional timespan value to set the minimum backoff duration to a value other than the default.
125-
/// </summary>
126-
internal TimeSpan MinBackoffDuration { get; set; } = FailOverConstants.MinBackoffDuration;
127-
128128
/// <summary>
129129
/// Options used to configure the client used to communicate with Azure App Configuration.
130130
/// </summary>
@@ -514,9 +514,9 @@ private static ConfigurationClientOptions GetDefaultClientOptions()
514514
clientOptions.Retry.Mode = RetryMode.Exponential;
515515
clientOptions.AddPolicy(new UserAgentHeaderPolicy(), HttpPipelinePosition.PerCall);
516516
clientOptions.Transport = new HttpClientTransport(new HttpClient()
517-
{
517+
{
518518
Timeout = NetworkTimeout
519-
});
519+
});
520520

521521
return clientOptions;
522522
}

0 commit comments

Comments
 (0)