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;