Xamarin-CrossDownloadManager
Xamarin-CrossDownloadManager copied to clipboard
Warning CS0618 Obsolete function overload NSUrlSession.FromConfiguration
When I am trying to compile this for iOS I get a warning:
Warning CS0618: 'NSUrlSession.FromConfiguration(NSUrlSessionConfiguration, NSUrlSession Delegate, NSOperationQueue)' is obsolete: 'Use the overload with a 'INSUrlSessionDelegate' parameter.'
The issue is in the file DownloadManagerImplementation.cs for iOS and the function is "createSession":
private NSUrlSession createSession(NSUrlSessionConfiguration configuration, UrlSessionDownloadDelegate sessionDownloadDelegate) {
configuration.HttpMaximumConnectionsPerHost = 1;
return NSUrlSession.FromConfiguration(configuration, sessionDownloadDelegate, null);
}
Platform:
- [ ] iOS
@runesig would you have the time to write a PR for this? 😊