Skip to content

Commit 2b004fb

Browse files
Fix format (#647)
* fix format * fix format * fix format * fix format
1 parent 2de6c93 commit 2b004fb

File tree

6 files changed

+19
-16
lines changed

6 files changed

+19
-16
lines changed

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

Lines changed: 5 additions & 5 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>();
@@ -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
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
using Azure.Data.AppConfiguration;
2-
using Azure;
1+
using Azure;
2+
using Azure.Data.AppConfiguration;
33
using System.Collections.Generic;
44

55
namespace Microsoft.Extensions.Configuration.AzureAppConfiguration

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
using Azure.Data.AppConfiguration;
2-
using Azure;
1+
using Azure;
2+
using Azure.Data.AppConfiguration;
33
using System.Collections.Generic;
44

55
namespace Microsoft.Extensions.Configuration.AzureAppConfiguration

tests/Tests.AzureAppConfiguration/FeatureManagementTests.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,7 @@ public async Task WatchesFeatureFlags()
731731
}
732732

733733
[Fact]
734+
[Obsolete]
734735
public async Task WatchesFeatureFlagsUsingCacheExpirationInterval()
735736
{
736737
var featureFlags = new List<ConfigurationSetting> { _kv };
@@ -874,6 +875,7 @@ public async Task SkipRefreshIfRefreshIntervalHasNotElapsed()
874875
}
875876

876877
[Fact]
878+
[Obsolete]
877879
public async Task SkipRefreshIfCacheNotExpired()
878880
{
879881
var featureFlags = new List<ConfigurationSetting> { _kv };
@@ -1174,7 +1176,7 @@ MockAsyncPageable GetTestKeys(SettingSelector selector, CancellationToken ct)
11741176
if (newSetting != null)
11751177
copy.Add(TestHelpers.CloneSetting(newSetting));
11761178
return new MockAsyncPageable(copy);
1177-
};
1179+
}
11781180

11791181
var testClient = mockClient.Object;
11801182

@@ -1199,6 +1201,7 @@ MockAsyncPageable GetTestKeys(SettingSelector selector, CancellationToken ct)
11991201
}
12001202

12011203
[Fact]
1204+
[Obsolete]
12021205
public void AlternateValidFeatureFlagFormats()
12031206
{
12041207
var mockResponse = new Mock<Response>();
@@ -1215,7 +1218,7 @@ MockAsyncPageable GetTestKeys(SettingSelector selector, CancellationToken ct)
12151218
if (newSetting != null)
12161219
copy.Add(TestHelpers.CloneSetting(newSetting));
12171220
return new MockAsyncPageable(copy);
1218-
};
1221+
}
12191222

12201223
var testClient = mockClient.Object;
12211224

tests/Tests.AzureAppConfiguration/KeyVaultReferenceTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ MockAsyncPageable GetTestKeys(SettingSelector selector, CancellationToken ct)
982982
if (newSetting != null)
983983
copy.Add(TestHelpers.CloneSetting(newSetting));
984984
return new MockAsyncPageable(copy);
985-
};
985+
}
986986

987987
var testClient = mockClient.Object;
988988

@@ -1028,7 +1028,7 @@ MockAsyncPageable GetTestKeys(SettingSelector selector, CancellationToken ct)
10281028
if (newSetting != null)
10291029
copy.Add(TestHelpers.CloneSetting(newSetting));
10301030
return new MockAsyncPageable(copy);
1031-
};
1031+
}
10321032

10331033
var testClient = mockClient.Object;
10341034

tests/Tests.AzureAppConfiguration/RefreshTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ Response<ConfigurationSetting> GetIfChanged(ConfigurationSetting setting, bool o
320320
foreach (var setting in keyValueCollection)
321321
{
322322
copy.Add(TestHelpers.CloneSetting(setting));
323-
};
323+
}
324324

325325
return new MockAsyncPageable(copy);
326326
});
@@ -392,7 +392,7 @@ Response<ConfigurationSetting> GetIfChanged(ConfigurationSetting setting, bool o
392392
foreach (var setting in keyValueCollection)
393393
{
394394
copy.Add(TestHelpers.CloneSetting(setting));
395-
};
395+
}
396396

397397
return new MockAsyncPageable(copy);
398398
});
@@ -461,7 +461,7 @@ public async Task RefreshTests_SingleServerCallOnSimultaneousMultipleRefresh()
461461
foreach (var setting in keyValueCollection)
462462
{
463463
copy.Add(TestHelpers.CloneSetting(setting));
464-
};
464+
}
465465

466466
return new MockAsyncPageable(copy, operationDelay);
467467
});

0 commit comments

Comments
 (0)