I am working on a Xamarin project using .Net Standard 2.0 PCL.
As per the discussion on https://github.com/dotnet/standard/issues/642
var sp = ServicePointManager.FindServicePoint(new Uri("http://foo.bar/baz/123?a=ab"));
sp.ConnectionLeaseTimeout = 60*1000; // 1 minute
When we use ServicePoint.ConnectionLeaseTimeout it is giving method not implemented exception. When i debug the app I got the following error in the expression window
In the same discussion they are discussing that they have resolved the issue by fixing and committing to mono. FIX
Could any one knows about this problem? Or tell me that which mono version it gets updated.
Related Discussions below:
https://github.com/dotnet/corefx/issues/11224
https://stackoverflow.com/questions/50994072/how-do-i-decrease-dns-refresh-timeout-successfully-with-httpclient-in-xamarin-fo
https://github.com/mono/mono/pull/11246
Answers
I would use a .net Standard library instead of PCL. It supports the missing feature