/// <summary>
 /// Initializes a new instance of the <see cref="DefaultRequestHandler"/> class.
 /// </summary>
 public DefaultRequestHandler(IChromelyConfiguration config, IChromelyCommandTaskRunner commandTaskRunner, IChromelyWindow window, CefResourceRequestHandler resourceRequestHandler = null)
 {
     _config                 = config;
     _commandTaskRunner      = commandTaskRunner;
     _browser                = window as ChromiumBrowser;
     _resourceRequestHandler = resourceRequestHandler;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultLoadHandler"/> class.
 /// </summary>
 public DefaultLoadHandler(IChromelyConfiguration config, IChromelyWindow window)
 {
     _config  = config;
     _browser = window as ChromiumBrowser;
 }
 public DefaultLifeSpanHandler(IChromelyConfiguration config, IChromelyCommandTaskRunner commandTaskRunner, IChromelyWindow window)
 {
     _config            = config;
     _commandTaskRunner = commandTaskRunner;
     _browser           = window as ChromiumBrowser;
 }