From 7f371af1a07db8f809786f0b54532ada1d597fef Mon Sep 17 00:00:00 2001 From: amaitland Date: Fri, 15 Jul 2016 08:17:47 +1000 Subject: [PATCH] Run the Offscreen continuation on the Threadpool --- CefSharp.MinimalExample.OffScreen/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CefSharp.MinimalExample.OffScreen/Program.cs b/CefSharp.MinimalExample.OffScreen/Program.cs index 0951b1f..d8db1bd 100644 --- a/CefSharp.MinimalExample.OffScreen/Program.cs +++ b/CefSharp.MinimalExample.OffScreen/Program.cs @@ -7,6 +7,7 @@ using System.Diagnostics; using System.IO; using System.Threading; using CefSharp.OffScreen; +using System.Threading.Tasks; namespace CefSharp.MinimalExample.OffScreen { @@ -90,7 +91,7 @@ namespace CefSharp.MinimalExample.OffScreen Process.Start(screenshotPath); Console.WriteLine("Image viewer launched. Press any key to exit."); - }); + }, TaskScheduler.Default); }); } }