Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
I'm using SignalR.
Internally, they use Microsoft HTTP Client Libraries (I'm using the latest version, 2.2.28).
SignalR uses this library for many things, but I've found a bug on the extension method SupportsPreAuthenticate of the class System.Net.Http.HttpClientHandlerExtensions.
This method should return false on iOS, but still, it is returning true, causing something like this:
PreAuthenticate = true;
To throw an exception, when it shouldn't.
Can you please share your solution?
`System.Net.Http.HttpClientHandlerExtensions` is not a type in the `System.Net.Http.dll` that ships with XI. It might be the MS version that somehow getting copied into the build. The test case will be very helpful to track this :)
Created attachment 9598 [details]
Tested on iOS Simulator 7.1 (iPhone 4s).
Calling (or not)
> PreAuthenticate = true;
does not change anything in recent versions of Xamarin.iOS.
However the attached test case uses `Microsoft.Net.Http` nuget package which provides it's own `System.Net.Http.dll` assembly, i.e. it does not use the one provided by the Xamarin's SDK, so YMMV.
You should use a PCL profile that allows System.Net.Http.dll without the use of this nuget and you'll get properties that will match the capabilities (and also support for native handlers).