Class SimpleProxyResolver
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class SimpleProxyResolver : Object, ProxyResolver, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
SimpleProxyResolver
- Implements
- Inherited Members
Constructors
SimpleProxyResolver(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public SimpleProxyResolver(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
SimpleProxyResolver(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected SimpleProxyResolver(CreationData data)
Parameters
dataCreationData
SimpleProxyResolver(SimpleProxyResolverHandle)
protected SimpleProxyResolver(SimpleProxyResolverHandle handle)
Parameters
handleSimpleProxyResolverHandle
Fields
DefaultProxyPropertyDefinition
public static readonly Property<string?, SimpleProxyResolver> DefaultProxyPropertyDefinition
Field Value
IgnoreHostsPropertyDefinition
public static readonly Property<string[], SimpleProxyResolver> IgnoreHostsPropertyDefinition
Field Value
Properties
DefaultProxy
public string? DefaultProxy { get; set; }
Property Value
IgnoreHosts
public string[] IgnoreHosts { get; set; }
Property Value
- string[]
Methods
GetGType()
public static Type GetGType()
Returns
IsSupported()
[Version("2.26")]
public bool IsSupported()
Returns
Lookup(string, Cancellable?)
[Version("2.26")]
public string[] Lookup(string uri, Cancellable? cancellable)
Parameters
uristringcancellableCancellable
Returns
- string[]
LookupFinish(AsyncResult)
[Version("2.26")]
public string[] LookupFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
- string[]
New(string?, string[]?)
[Version("2.36")]
public static ProxyResolver New(string? defaultProxy, string[]? ignoreHosts)
Parameters
Returns
NewFromPointer(nint, bool)
Creates a new managed SimpleProxyResolver instance for a given pointer.
public static SimpleProxyResolver NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new SimpleProxyResolver and sets the properties specified by the construct arguments.
public static SimpleProxyResolver NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetDefaultProxy(string?)
[Version("2.36")]
public void SetDefaultProxy(string? defaultProxy)
Parameters
defaultProxystring
SetIgnoreHosts(string[])
[Version("2.36")]
public void SetIgnoreHosts(string[] ignoreHosts)
Parameters
ignoreHostsstring[]
SetUriProxy(string, string)
[Version("2.36")]
public void SetUriProxy(string uriScheme, string proxy)