RenderStream() public method

public RenderStream ( Stream stream ) : void
stream Stream
return void
コード例 #1
0
        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));
        }
コード例 #2
0
        public override void FinishedLoading(NSUrlConnection connection)
        {
            var ms = new MemoryStream(result);

            viewController.RenderStream(ms);
        }