Skip to content

Warning CS0618 Obsolete function overload NSUrlSession.FromConfiguration #97

@runesig

Description

@runesig

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions