22// Licensed under the MIT license. 
33// 
44using  Azure . Core ; 
5- using  Azure . Core . Pipeline ; 
5+ using  Azure . Core . Pipeline ; 
66using  Azure . Data . AppConfiguration ; 
77using  Microsoft . Extensions . Configuration . AzureAppConfiguration . AzureKeyVault ; 
88using  Microsoft . Extensions . Configuration . AzureAppConfiguration . Extensions ; 
1111using  System ; 
1212using  System . Collections . Generic ; 
1313using  System . Linq ; 
14- using  System . Net . Http ; 
14+ using  System . Net . Http ; 
1515using  System . Threading . Tasks ; 
1616
1717namespace  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