Xamarin-CrossDownloadManager icon indicating copy to clipboard operation
Xamarin-CrossDownloadManager copied to clipboard

Warning CS0618 Obsolete function overload NSUrlSession.FromConfiguration

Open runesig opened this issue 7 years ago • 1 comments

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 avatar Nov 01 '18 14:11 runesig

@runesig would you have the time to write a PR for this? 😊

SimonSimCity avatar Nov 02 '18 07:11 SimonSimCity