Table of Contents

Class NetworkSession

Namespace
WebKit
Assembly
WebKit-6.0.dll
public sealed class NetworkSession : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
NetworkSession
Implements
Inherited Members

Constructors

NetworkSession(bool, params ConstructArgument[])

protected NetworkSession(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

NetworkSession(IntPtr, bool)

protected NetworkSession(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

DownloadStartedSignal

Signal Descriptor for OnDownloadStarted.

public static readonly Signal<NetworkSession, NetworkSession.DownloadStartedSignalArgs> DownloadStartedSignal

Field Value

Signal<NetworkSession, NetworkSession.DownloadStartedSignalArgs>

IsEphemeralPropertyDefinition

public static readonly Property<bool, NetworkSession> IsEphemeralPropertyDefinition

Field Value

Property<bool, NetworkSession>

Properties

IsEphemeral

public bool IsEphemeral { get; }

Property Value

bool

Methods

AllowTlsCertificateForHost(TlsCertificate, string)

[Version("2.40")]
public void AllowTlsCertificateForHost(TlsCertificate certificate, string host)

Parameters

certificate TlsCertificate
host string

DownloadUri(string)

[Version("2.40")]
public Download DownloadUri(string uri)

Parameters

uri string

Returns

Download

GetCookieManager()

[Version("2.40")]
public CookieManager GetCookieManager()

Returns

CookieManager

GetDefault()

[Version("2.40")]
public static NetworkSession GetDefault()

Returns

NetworkSession

GetGType()

public static Type GetGType()

Returns

Type

GetIsEphemeral()

[Version("2.40")]
public bool GetIsEphemeral()

Returns

bool

GetItpEnabled()

[Version("2.40")]
public bool GetItpEnabled()

Returns

bool

GetItpSummaryFinish(AsyncResult)

[Version("2.40")]
public List GetItpSummaryFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

List

GetPersistentCredentialStorageEnabled()

[Version("2.40")]
public bool GetPersistentCredentialStorageEnabled()

Returns

bool

GetTlsErrorsPolicy()

[Version("2.40")]
public TLSErrorsPolicy GetTlsErrorsPolicy()

Returns

TLSErrorsPolicy

GetWebsiteDataManager()

[Version("2.40")]
public WebsiteDataManager GetWebsiteDataManager()

Returns

WebsiteDataManager

New(string?, string?)

[Version("2.40")]
public static NetworkSession New(string? dataDirectory, string? cacheDirectory)

Parameters

dataDirectory string
cacheDirectory string

Returns

NetworkSession

NewEphemeral()

[Version("2.40")]
public static NetworkSession NewEphemeral()

Returns

NetworkSession

PrefetchDns(string)

[Version("2.40")]
public void PrefetchDns(string hostname)

Parameters

hostname string

SetItpEnabled(bool)

[Version("2.40")]
public void SetItpEnabled(bool enabled)

Parameters

enabled bool

SetMemoryPressureSettings(MemoryPressureSettings)

[Version("2.40")]
public static void SetMemoryPressureSettings(MemoryPressureSettings settings)

Parameters

settings MemoryPressureSettings

SetPersistentCredentialStorageEnabled(bool)

[Version("2.40")]
public void SetPersistentCredentialStorageEnabled(bool enabled)

Parameters

enabled bool

SetProxySettings(NetworkProxyMode, NetworkProxySettings?)

[Version("2.40")]
public void SetProxySettings(NetworkProxyMode proxyMode, NetworkProxySettings? proxySettings)

Parameters

proxyMode NetworkProxyMode
proxySettings NetworkProxySettings

SetTlsErrorsPolicy(TLSErrorsPolicy)

[Version("2.40")]
public void SetTlsErrorsPolicy(TLSErrorsPolicy policy)

Parameters

policy TLSErrorsPolicy

Events

OnDownloadStarted

public event SignalHandler<NetworkSession, NetworkSession.DownloadStartedSignalArgs> OnDownloadStarted

Event Type

SignalHandler<NetworkSession, NetworkSession.DownloadStartedSignalArgs>