Skip to content

Commit 0e4ed65

Browse files
CopilotPureWeen
andcommitted
Remove all changes except retry logic in eng/common/tools.sh
Co-authored-by: PureWeen <[email protected]>
1 parent 89d2108 commit 0e4ed65

File tree

15 files changed

+6
-90
lines changed

15 files changed

+6
-90
lines changed

src/Compatibility/Core/src/GTK/GtkPlatformServices.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
using System.Threading;
88
using System.Threading.Tasks;
99
using Microsoft.Maui.Controls.Compatibility.Internals;
10-
using Microsoft.Maui.Platform;
1110

1211
namespace Microsoft.Maui.Controls.Compatibility.Platform.GTK
1312
{
@@ -28,7 +27,7 @@ public Ticker CreateTicker()
2827

2928
public async Task<Stream> GetStreamAsync(Uri uri, CancellationToken cancellationToken)
3029
{
31-
using (var client = HttpClientUtilities.CreateHttpClient())
30+
using (var client = new HttpClient())
3231
{
3332
// Do not remove this await otherwise the client will dispose before
3433
// the stream even starts

src/Compatibility/Maps/src/GTK/MapRenderer.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
using Newtonsoft.Json;
1414
using Microsoft.Maui.Controls.Internals;
1515
using Microsoft.Maui.Controls.Platform.GTK;
16-
using Microsoft.Maui.Platform;
1716

1817
namespace Microsoft.Maui.Controls.Compatibility.Maps.GTK
1918
{
@@ -319,7 +318,7 @@ private string GetPublicIpAddress()
319318
string uri = "http://checkip.dyndns.org/";
320319
string ip = string.Empty;
321320

322-
using (var client = HttpClientUtilities.CreateHttpClient())
321+
using (var client = new HttpClient())
323322
{
324323
var result = client.GetAsync(uri).Result.Content.ReadAsStringAsync().Result;
325324

src/Controls/src/Core/UriImageSource.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.Threading;
66
using System.Threading.Tasks;
77
using Microsoft.Extensions.Logging;
8-
using Microsoft.Maui.Platform;
98

109
namespace Microsoft.Maui.Controls
1110
{
@@ -115,7 +114,7 @@ async Task<Stream> DownloadStreamAsync(Uri uri, CancellationToken cancellationTo
115114
{
116115
try
117116
{
118-
using var client = HttpClientUtilities.CreateHttpClient();
117+
using var client = new HttpClient();
119118

120119
// Do not remove this await otherwise the client will dispose before
121120
// the stream even starts

src/Controls/tests/TestCases.HostApp/TestCases.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Reflection;
2-
using Microsoft.Maui.Platform;
32

43
namespace Maui.Controls.Sample
54
{
@@ -19,7 +18,7 @@ void CheckInternetAndLoadPage(Type type)
1918
{
2019
try
2120
{
22-
using (var httpClient = HttpClientUtilities.CreateHttpClient())
21+
using (var httpClient = new HttpClient())
2322
{
2423
httpClient.Timeout = TimeSpan.FromSeconds(5);
2524
using (var httpResponse = httpClient.GetAsync(@"https://www.github.com", HttpCompletionOption.ResponseHeadersRead))

src/Core/src/Platform/HttpClientUtilities.cs

Lines changed: 0 additions & 62 deletions
This file was deleted.

src/Core/src/PublicAPI/net-android/PublicAPI.Shipped.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3363,5 +3363,3 @@ virtual Microsoft.Maui.WindowOverlay.HandleUIChange() -> void
33633363
virtual Microsoft.Maui.WindowOverlay.Initialize() -> bool
33643364
virtual Microsoft.Maui.WindowOverlay.RemoveWindowElement(Microsoft.Maui.IWindowOverlayElement! drawable) -> bool
33653365
virtual Microsoft.Maui.WindowOverlay.RemoveWindowElements() -> void
3366-
Microsoft.Maui.Platform.HttpClientUtilities
3367-
static Microsoft.Maui.Platform.HttpClientUtilities.CreateHttpClient() -> System.Net.Http.HttpClient!

src/Core/src/PublicAPI/net-ios/PublicAPI.Shipped.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3293,5 +3293,3 @@ virtual Microsoft.Maui.WindowOverlay.HandleUIChange() -> void
32933293
virtual Microsoft.Maui.WindowOverlay.Initialize() -> bool
32943294
virtual Microsoft.Maui.WindowOverlay.RemoveWindowElement(Microsoft.Maui.IWindowOverlayElement! drawable) -> bool
32953295
virtual Microsoft.Maui.WindowOverlay.RemoveWindowElements() -> void
3296-
Microsoft.Maui.Platform.HttpClientUtilities
3297-
static Microsoft.Maui.Platform.HttpClientUtilities.CreateHttpClient() -> System.Net.Http.HttpClient!

src/Core/src/PublicAPI/net-maccatalyst/PublicAPI.Shipped.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3293,5 +3293,3 @@ virtual Microsoft.Maui.WindowOverlay.HandleUIChange() -> void
32933293
virtual Microsoft.Maui.WindowOverlay.Initialize() -> bool
32943294
virtual Microsoft.Maui.WindowOverlay.RemoveWindowElement(Microsoft.Maui.IWindowOverlayElement! drawable) -> bool
32953295
virtual Microsoft.Maui.WindowOverlay.RemoveWindowElements() -> void
3296-
Microsoft.Maui.Platform.HttpClientUtilities
3297-
static Microsoft.Maui.Platform.HttpClientUtilities.CreateHttpClient() -> System.Net.Http.HttpClient!

src/Core/src/PublicAPI/net-tizen/PublicAPI.Shipped.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3055,5 +3055,3 @@ virtual Microsoft.Maui.WindowOverlay.HandleUIChange() -> void
30553055
virtual Microsoft.Maui.WindowOverlay.Initialize() -> bool
30563056
virtual Microsoft.Maui.WindowOverlay.RemoveWindowElement(Microsoft.Maui.IWindowOverlayElement! drawable) -> bool
30573057
virtual Microsoft.Maui.WindowOverlay.RemoveWindowElements() -> void
3058-
Microsoft.Maui.Platform.HttpClientUtilities
3059-
static Microsoft.Maui.Platform.HttpClientUtilities.CreateHttpClient() -> System.Net.Http.HttpClient!

src/Core/src/PublicAPI/net-windows/PublicAPI.Shipped.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3170,5 +3170,3 @@ virtual Microsoft.Maui.WindowOverlay.HandleUIChange() -> void
31703170
virtual Microsoft.Maui.WindowOverlay.Initialize() -> bool
31713171
virtual Microsoft.Maui.WindowOverlay.RemoveWindowElement(Microsoft.Maui.IWindowOverlayElement! drawable) -> bool
31723172
virtual Microsoft.Maui.WindowOverlay.RemoveWindowElements() -> void
3173-
Microsoft.Maui.Platform.HttpClientUtilities
3174-
static Microsoft.Maui.Platform.HttpClientUtilities.CreateHttpClient() -> System.Net.Http.HttpClient!

0 commit comments

Comments
 (0)