From 7f01954fc5363e2649ed98155d96a643f7ef8bd3 Mon Sep 17 00:00:00 2001 From: Tsanie Lily Date: Tue, 12 Sep 2023 16:29:43 +0800 Subject: [PATCH] spelling check --- Network/Platforms/iOS/PlatformConnectivity.cs | 2 +- Network/Platforms/iOS/PlatformNetworkHelper.cs | 4 ++-- Network/Platforms/iOS/PlatformNetworkTask.cs | 2 +- Network/Platforms/iOS/Tasks/ContentTask.cs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Network/Platforms/iOS/PlatformConnectivity.cs b/Network/Platforms/iOS/PlatformConnectivity.cs index a96f808..938203c 100644 --- a/Network/Platforms/iOS/PlatformConnectivity.cs +++ b/Network/Platforms/iOS/PlatformConnectivity.cs @@ -184,7 +184,7 @@ partial class Connectivity async void OnChange(NetworkReachabilityFlags flags) { - // Add in artifical delay so the connection status has time to change + // Add in artificial delay so the connection status has time to change // else it will return true no matter what. await Task.Delay(100); diff --git a/Network/Platforms/iOS/PlatformNetworkHelper.cs b/Network/Platforms/iOS/PlatformNetworkHelper.cs index 69e1697..4623091 100644 --- a/Network/Platforms/iOS/PlatformNetworkHelper.cs +++ b/Network/Platforms/iOS/PlatformNetworkHelper.cs @@ -198,14 +198,14 @@ partial class NetworkHelper : NSObject, INSUrlSessionDataDelegate { if (IsResponseSuccess(httpResponse)) { - if (networkTask.OnResponsed(httpResponse)) + if (networkTask.OnResponded(httpResponse)) { completionHandler(NSUrlSessionResponseDisposition.Allow); } else { completionHandler(NSUrlSessionResponseDisposition.Cancel); - networkTask.SetException(new TaskCanceledException($"Cancelled on task responsed: {dataTask.CurrentRequest?.Url}", null, networkTask.Token)); + networkTask.SetException(new TaskCanceledException($"Cancelled on task responded: {dataTask.CurrentRequest?.Url}", null, networkTask.Token)); } } else diff --git a/Network/Platforms/iOS/PlatformNetworkTask.cs b/Network/Platforms/iOS/PlatformNetworkTask.cs index 21d5a22..004dad3 100644 --- a/Network/Platforms/iOS/PlatformNetworkTask.cs +++ b/Network/Platforms/iOS/PlatformNetworkTask.cs @@ -22,7 +22,7 @@ partial class NetworkTask Dispose(); } - public virtual bool OnResponsed(NSHttpUrlResponse response) + public virtual bool OnResponded(NSHttpUrlResponse response) { return true; } diff --git a/Network/Platforms/iOS/Tasks/ContentTask.cs b/Network/Platforms/iOS/Tasks/ContentTask.cs index b59ef0f..a93120f 100644 --- a/Network/Platforms/iOS/Tasks/ContentTask.cs +++ b/Network/Platforms/iOS/Tasks/ContentTask.cs @@ -27,7 +27,7 @@ abstract class ContentTask : NetworkTask taskSource?.TrySetResult(ex); } - public override bool OnResponsed(NSHttpUrlResponse response) + public override bool OnResponded(NSHttpUrlResponse response) { expectedContentLength = response.ExpectedContentLength; return true;