davetimmins/ArcGIS.PCL

Targeting .net 4.5 should not need Microsoft.Net.Http NuGet reference

SergeyBarskiy opened this issue · 3 comments

This package is part of core .NET 4.5, and can be removed. It adds Microsoft.Bcl reference, and there is no reason to have this in .NET 4.5. Should this be fixed?

That NuGet package adds the Microsoft.Net.Http.Extensions.dll for .NET 4.5 which is used in the HttpClientFactory so it is still needed.

I was able to remove it though. Here is the link to updated factory in the forked repo: https://github.com/SergeyBarskiy/ArcGIS.PCL/blob/master/src/ArcGIS.ServiceModel.NET/HttpClientFactory.cs. The only setting I removed is pre-authentication.

Looks like you had to remove those methods, though I think it could use SupportsProxy and SupportsRedirectConfiguration and not bother with the check for SupportsPreAuthenticate() as I can't see an equivalent.