mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
3eca8bdba6
Core - Simplify Setting of Proxy for new RequestContext - Throw exception if requestContext.CanSetPreference returns false. Proxy likely set via command line args. - Add IRequestContext.SetPreferenceAsync - Test - Add SelfHosted Proxy Use Titanium.Web.Proxy to self host a proxy for testing proxy settings Only run Proxy Tests when run locally - Add RequestContext Builder Fluent API
35 lines
1021 B
C#
35 lines
1021 B
C#
// Copyright © 2020 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.Preferences
|
|
{
|
|
/// <summary>
|
|
/// Response when <see cref="IRequestContext.SetPreference(string, object, out string)"/>
|
|
/// is called in an async fashion
|
|
/// </summary>
|
|
public class SetPreferenceResponse
|
|
{
|
|
/// <summary>
|
|
/// Success
|
|
/// </summary>
|
|
public bool Success { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Error Message
|
|
/// </summary>
|
|
public string ErrorMessage { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Default constructor
|
|
/// </summary>
|
|
/// <param name="success">success</param>
|
|
/// <param name="errorMessage">error message</param>
|
|
public SetPreferenceResponse(bool success, string errorMessage)
|
|
{
|
|
Success = success;
|
|
ErrorMessage = errorMessage;
|
|
}
|
|
}
|
|
}
|