title: NSUrlSession in Xamarin
body: <p>I have started learning Xamarin and created small tutorial for retrieving data from server. I have used NSUrlSession mechanism. Below is my code. I am not sure why warning is showing for NSUrlSession. Please help me in understanding and solving of this warning.</p>
  
  <p><strong>Warning CS0618: 'NSUrlSession.FromConfiguration(NSUrlSessionConfiguration, NSUrlSessionDelegate, NSOperationQueue)' is obsolete: 'Use the overload with a <code>INSUrlSessionDelegate</code> parameter.' (CS0618) (SampleApp)</strong></p>
  
  <pre><code>    public void getData() {
  
          NSUrl url = new NSUrl("some url");
          NSUrlRequest request = new NSUrlRequest(url);
          NSUrlSession session = null;
          NSUrlSessionConfiguration myConfig = NSUrlSessionConfiguration.DefaultSessionConfiguration;
          session = NSUrlSession.FromConfiguration(myConfig, new MySessionDelegate (), new NSOperationQueue ());
          NSUrlSessionTask task = session.CreateDataTask(request, (data, response, error) =&gt; {
  
          });
          task.Resume();
      }
  
      public class MySessionDelegate : NSUrlSessionDelegate, INSUrlSessionDelegate
      {
  
      }
  </code></pre>