public async Task HttpSample(bool secure) { var client = new System.Net.Http.HttpClient(); viewController.HandlerType = typeof(HttpMessageInvoker).GetField("handler", BindingFlags.Instance | BindingFlags.NonPublic)?.GetValue(client).GetType(); viewController.RenderStream(await client.GetStreamAsync(secure ? "https://www.xamarin.com" : viewController.WisdomUrl)); }
public override void FinishedLoading(NSUrlConnection connection) { var ms = new MemoryStream(result); viewController.RenderStream(ms); }