spelling check
This commit is contained in:
parent
b501dc5e76
commit
7f01954fc5
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
@ -22,7 +22,7 @@ partial class NetworkTask
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual bool OnResponsed(NSHttpUrlResponse response)
|
||||
public virtual bool OnResponded(NSHttpUrlResponse response)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ abstract class ContentTask<T, TResult> : NetworkTask
|
||||
taskSource?.TrySetResult(ex);
|
||||
}
|
||||
|
||||
public override bool OnResponsed(NSHttpUrlResponse response)
|
||||
public override bool OnResponded(NSHttpUrlResponse response)
|
||||
{
|
||||
expectedContentLength = response.ExpectedContentLength;
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user