Table of Contents

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

constructArguments ConstructArgument[]

SimpleProxyResolver(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected SimpleProxyResolver(CreationData data)

Parameters

data CreationData

SimpleProxyResolver(SimpleProxyResolverHandle)

protected SimpleProxyResolver(SimpleProxyResolverHandle handle)

Parameters

handle SimpleProxyResolverHandle

Fields

DefaultProxyPropertyDefinition

public static readonly Property<string?, SimpleProxyResolver> DefaultProxyPropertyDefinition

Field Value

Property<string, SimpleProxyResolver>

IgnoreHostsPropertyDefinition

public static readonly Property<string[], SimpleProxyResolver> IgnoreHostsPropertyDefinition

Field Value

Property<string[], SimpleProxyResolver>

Properties

DefaultProxy

public string? DefaultProxy { get; set; }

Property Value

string

IgnoreHosts

public string[] IgnoreHosts { get; set; }

Property Value

string[]

Methods

GetGType()

public static Type GetGType()

Returns

Type

IsSupported()

[Version("2.26")]
public bool IsSupported()

Returns

bool

Lookup(string, Cancellable?)

[Version("2.26")]
public string[] Lookup(string uri, Cancellable? cancellable)

Parameters

uri string
cancellable Cancellable

Returns

string[]

LookupFinish(AsyncResult)

[Version("2.26")]
public string[] LookupFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

string[]

New(string?, string[]?)

[Version("2.36")]
public static ProxyResolver New(string? defaultProxy, string[]? ignoreHosts)

Parameters

defaultProxy string
ignoreHosts string[]

Returns

ProxyResolver

NewFromPointer(nint, bool)

Creates a new managed SimpleProxyResolver instance for a given pointer.

public static SimpleProxyResolver NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

SimpleProxyResolver

NewWithProperties(ConstructArgument[])

Creates a new SimpleProxyResolver and sets the properties specified by the construct arguments.

public static SimpleProxyResolver NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

SimpleProxyResolver

SetDefaultProxy(string?)

[Version("2.36")]
public void SetDefaultProxy(string? defaultProxy)

Parameters

defaultProxy string

SetIgnoreHosts(string[])

[Version("2.36")]
public void SetIgnoreHosts(string[] ignoreHosts)

Parameters

ignoreHosts string[]

SetUriProxy(string, string)

[Version("2.36")]
public void SetUriProxy(string uriScheme, string proxy)

Parameters

uriScheme string
proxy string