mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 19:25:01 +00:00
ee563827ac
* Create RequestEventArgs.cs * Create RequestEventHandler * Update RequestEventArgs.cs corrected namespace * removed regions, splitted up classes per file * reformatted code * removed wrong class doc * deleted empty line * removed TODOs (moved them in pr comments) * adapted @amaitland 's pr notes * made code backwards compatible to c# < 6 * made code backwards compatible to c# < 6 ++ (moved default values for event args to ctor) * made code backwards compatible to c# < 6 ++ (added private setters to properties)
37 lines
1.4 KiB
C#
37 lines
1.4 KiB
C#
// Copyright © 2010-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; }
|
|
|
|
/// <summary>
|
|
/// Callback interface used for asynchronous continuation of url requests.
|
|
/// If empty the error cannot be recovered from and the request will be canceled automatically.
|
|
/// </summary>
|
|
public IRequestCallback Callback { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Set to false to cancel the request immediately. Set to true and use <see cref="T:CefSharp.IRequestCallback" /> to
|
|
/// execute in an async fashion.
|
|
/// </summary>
|
|
public bool ContinueAsync { get; set; }
|
|
}
|
|
}
|