示例#1
0
 protected override Task StartBrowser()
 {
     try
     {
         var cookieManager = Cef.GetGlobalCookieManager();
         // Create the offscreen Chromium browser.
         var browser = new ChromiumWebBrowser(Url);
         browser.LoadingStateChanged += Login;
         PageAnalyzeFinished.WaitOne();
         browser.Dispose();
     }
     catch (Exception ex)
     {
         Log.Error("WebMonitor Failed", ex);
         throw;
     }
     return(Task.FromResult <object>(null));
 }