From 9f20084f4dce9f4a0ef7cb8e2be7d551b38aa0d1 Mon Sep 17 00:00:00 2001 From: Peter <34331512+pmaytak@users.noreply.github.com> Date: Tue, 31 Dec 2024 21:40:43 -0800 Subject: [PATCH] Update formatting. Fix public API analyzer warning. --- .../PublicAPI.Unshipped.txt | 2 ++ .../PublicAPI/net6.0/PublicAPI.Shipped.txt | 0 .../PublicAPI/net6.0/PublicAPI.Unshipped.txt | 2 ++ .../PublicAPI/net8.0/PublicAPI.Shipped.txt | 0 .../PublicAPI/net8.0/PublicAPI.Unshipped.txt | 2 ++ .../PublicAPI/net9.0/PublicAPI.Shipped.txt | 0 .../PublicAPI/net9.0/PublicAPI.Unshipped.txt | 2 ++ .../HttpDocumentRetrieverTests.cs | 20 +++++++++++-------- 8 files changed, 20 insertions(+), 8 deletions(-) create mode 100644 src/Microsoft.IdentityModel.Protocols/PublicAPI/net6.0/PublicAPI.Shipped.txt create mode 100644 src/Microsoft.IdentityModel.Protocols/PublicAPI/net6.0/PublicAPI.Unshipped.txt create mode 100644 src/Microsoft.IdentityModel.Protocols/PublicAPI/net8.0/PublicAPI.Shipped.txt create mode 100644 src/Microsoft.IdentityModel.Protocols/PublicAPI/net8.0/PublicAPI.Unshipped.txt create mode 100644 src/Microsoft.IdentityModel.Protocols/PublicAPI/net9.0/PublicAPI.Shipped.txt create mode 100644 src/Microsoft.IdentityModel.Protocols/PublicAPI/net9.0/PublicAPI.Unshipped.txt diff --git a/src/Microsoft.IdentityModel.Protocols/PublicAPI.Unshipped.txt b/src/Microsoft.IdentityModel.Protocols/PublicAPI.Unshipped.txt index e69de29bb2..5c617a3121 100644 --- a/src/Microsoft.IdentityModel.Protocols/PublicAPI.Unshipped.txt +++ b/src/Microsoft.IdentityModel.Protocols/PublicAPI.Unshipped.txt @@ -0,0 +1,2 @@ +Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.HttpVersion.get -> System.Version +Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.HttpVersion.set -> void diff --git a/src/Microsoft.IdentityModel.Protocols/PublicAPI/net6.0/PublicAPI.Shipped.txt b/src/Microsoft.IdentityModel.Protocols/PublicAPI/net6.0/PublicAPI.Shipped.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/Microsoft.IdentityModel.Protocols/PublicAPI/net6.0/PublicAPI.Unshipped.txt b/src/Microsoft.IdentityModel.Protocols/PublicAPI/net6.0/PublicAPI.Unshipped.txt new file mode 100644 index 0000000000..2018392e40 --- /dev/null +++ b/src/Microsoft.IdentityModel.Protocols/PublicAPI/net6.0/PublicAPI.Unshipped.txt @@ -0,0 +1,2 @@ +Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.HttpVersionPolicy.get -> System.Net.Http.HttpVersionPolicy? +Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.HttpVersionPolicy.set -> void diff --git a/src/Microsoft.IdentityModel.Protocols/PublicAPI/net8.0/PublicAPI.Shipped.txt b/src/Microsoft.IdentityModel.Protocols/PublicAPI/net8.0/PublicAPI.Shipped.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/Microsoft.IdentityModel.Protocols/PublicAPI/net8.0/PublicAPI.Unshipped.txt b/src/Microsoft.IdentityModel.Protocols/PublicAPI/net8.0/PublicAPI.Unshipped.txt new file mode 100644 index 0000000000..2018392e40 --- /dev/null +++ b/src/Microsoft.IdentityModel.Protocols/PublicAPI/net8.0/PublicAPI.Unshipped.txt @@ -0,0 +1,2 @@ +Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.HttpVersionPolicy.get -> System.Net.Http.HttpVersionPolicy? +Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.HttpVersionPolicy.set -> void diff --git a/src/Microsoft.IdentityModel.Protocols/PublicAPI/net9.0/PublicAPI.Shipped.txt b/src/Microsoft.IdentityModel.Protocols/PublicAPI/net9.0/PublicAPI.Shipped.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/Microsoft.IdentityModel.Protocols/PublicAPI/net9.0/PublicAPI.Unshipped.txt b/src/Microsoft.IdentityModel.Protocols/PublicAPI/net9.0/PublicAPI.Unshipped.txt new file mode 100644 index 0000000000..2018392e40 --- /dev/null +++ b/src/Microsoft.IdentityModel.Protocols/PublicAPI/net9.0/PublicAPI.Unshipped.txt @@ -0,0 +1,2 @@ +Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.HttpVersionPolicy.get -> System.Net.Http.HttpVersionPolicy? +Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.HttpVersionPolicy.set -> void diff --git a/test/Microsoft.IdentityModel.Protocols.Tests/HttpDocumentRetrieverTests.cs b/test/Microsoft.IdentityModel.Protocols.Tests/HttpDocumentRetrieverTests.cs index 1e2163ebc0..2d94df9ee5 100644 --- a/test/Microsoft.IdentityModel.Protocols.Tests/HttpDocumentRetrieverTests.cs +++ b/test/Microsoft.IdentityModel.Protocols.Tests/HttpDocumentRetrieverTests.cs @@ -205,10 +205,12 @@ public static TheoryData GetVersionTheoryData { get { - var theoryData = new TheoryData(); - theoryData.Add(new Version(1,0)); - theoryData.Add(new Version(1,1)); - theoryData.Add(new Version(2,0)); + var theoryData = new TheoryData + { + new Version(1, 0), + new Version(1, 1), + new Version(2, 0) + }; return theoryData; } } @@ -264,10 +266,12 @@ public static TheoryData GetVersionPolicyTheoryData { get { - var theoryData = new TheoryData(); - theoryData.Add(HttpVersionPolicy.RequestVersionOrLower); - theoryData.Add(HttpVersionPolicy.RequestVersionOrHigher); - theoryData.Add(HttpVersionPolicy.RequestVersionExact); + var theoryData = new TheoryData + { + HttpVersionPolicy.RequestVersionOrLower, + HttpVersionPolicy.RequestVersionOrHigher, + HttpVersionPolicy.RequestVersionExact + }; return theoryData; } }