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)
42 lines
1.6 KiB
C#
42 lines
1.6 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 GetAuthCredentialsEventArgs : BaseRequestEventArgs
|
|
{
|
|
public GetAuthCredentialsEventArgs(IWebBrowser browserControl, IBrowser browser, IFrame frame, bool isProxy, string host, int port, string realm, string scheme, IAuthCallback callback) : base(browserControl, browser)
|
|
{
|
|
Frame = frame;
|
|
IsProxy = isProxy;
|
|
Host = host;
|
|
Port = port;
|
|
Realm = realm;
|
|
Scheme = scheme;
|
|
Callback = callback;
|
|
|
|
ContinueAsync = false; // default
|
|
}
|
|
|
|
public IFrame Frame { get; private set; }
|
|
public bool IsProxy { get; private set; }
|
|
public string Host { get; private set; }
|
|
public int Port { get; private set; }
|
|
public string Realm { get; private set; }
|
|
public string Scheme { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Callback interface used for asynchronous continuation of authentication requests.
|
|
/// </summary>
|
|
public IAuthCallback Callback { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Set to true to continue the request and call
|
|
/// <see cref="T:CefSharp.GetAuthCredentialsEventArgs.Continue(System.String, System.String)" /> when the authentication information
|
|
/// is available. Set to false to cancel the request.
|
|
/// </summary>
|
|
public bool ContinueAsync { get; set; }
|
|
}
|
|
}
|