// Copyright © 2017 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. namespace CefSharp.Example.RequestEventHandler { public class OnCertificateErrorEventArgs : BaseRequestEventArgs { public OnCertificateErrorEventArgs(IWebBrowser browserControl, IBrowser browser, CefErrorCode errorCode, string requestUrl, ISslInfo sslInfo, IRequestCallback callback) : base(browserControl, browser) { ErrorCode = errorCode; RequestUrl = requestUrl; SSLInfo = sslInfo; Callback = callback; ContinueAsync = false; // default } public CefErrorCode ErrorCode { get; private set; } public string RequestUrl { get; private set; } public ISslInfo SSLInfo { get; private set; } /// /// Callback interface used for asynchronous continuation of url requests. /// If empty the error cannot be recovered from and the request will be canceled automatically. /// public IRequestCallback Callback { get; private set; } /// /// Set to false to cancel the request immediately. Set to true and use to /// execute in an async fashion. /// public bool ContinueAsync { get; set; } } }