You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <param name="scheme">is the protocol of the proxy server, and is one of: 'http', 'socks', 'socks4', 'socks5'. Also note that 'socks' is equivalent to 'socks5'.</param>
122
+
/// <param name="host">proxy host</param>
123
+
/// <param name="port">proxy port</param>
124
+
/// <returns>returns <see cref="SetPreferenceResponse.Success"/> true if successfull, false otherwise.</returns>
125
+
/// <remarks>Internally calls <seealso cref="IRequestContext.SetPreference(string, object, out string)"/> with
126
+
/// preference 'proxy' and mode of 'fixed_servers'</remarks>
error="Unable to set the proxy preference, it is read-only. If you specified the proxy settings with command line args it is not possible to change the proxy settings via this method.";
148
+
}
149
+
150
+
returnnewSetProxyResponse(success,error);
151
+
};
152
+
153
+
if(CefThread.CurrentlyOnUiThread)
154
+
{
155
+
returnTask.FromResult(func());
156
+
}
157
+
158
+
returnCefThread.ExecuteOnUiThread(func);
159
+
}
160
+
101
161
/// <summary>
102
162
/// Sets the proxy server for the specified <see cref="IRequestContext"/>
0 commit comments