In my progress of winRt development i find that I can use both of the two HttpClient:
System.Net.Http.HttpClient
windows.web.http.httpclient
What's the difference and how can i choose one?
In my progress of winRt development i find that I can use both of the two HttpClient:
System.Net.Http.HttpClient
windows.web.http.httpclient
What's the difference and how can i choose one?
#1 is a .net function so it can only be used from .net languages (C# and VB.net), while #2 is from the Windows Runtime which means it can also be used from javascript store apps.
If you're using C# use whatever you like. My guess is #1 is calling #2
You should be using
for WinRT development as stated here.
Here is the link from msdn.