You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
System.Net.HttpWebRequest cannot be used in Wasm. #30
Because I need to get data from a Web server, it seems that many of the System.Net namespaces cannot be used in Wasm, such as System.Net.WebClient. (All code in UWP works)
Activity
jeromelaban commentedon Jun 12, 2018
Thanks for your interest, you can use this to make HTTP calls: https://github.com/nventive/Uno.Playground/blob/80322aec3d759d009f6a900bca4a07bc63ae6a62/Uno.UI.Demo.Shared/Samples/Playground.xaml.cs#L487
You have to inject it at all call sites, since the BCL does not allow for changing it globally.
xsteel2003 commentedon Jun 12, 2018
Thank you very much, the CreateHttp() code works!
jeromelaban commentedon Jun 12, 2018
Excellent, thanks !
Merge pull request unoplatform#30 from unoplatform/pj/naming-cleanup
chore: MOAR LOGGING
chore: MOAR LOGGING