Click or drag to resize

NetworkClientEmulateNetworkConditionsAsync Method

Version 91.1.160
Activates emulation of network conditions.

Namespace:  CefSharp.DevTools.Network
Assembly:  CefSharp (in CefSharp.dll) Version: 91.1.160.0 (91.1.160.0)
Syntax
public Task<DevToolsMethodResponse> EmulateNetworkConditionsAsync(
	bool offline,
	long latency,
	long downloadThroughput,
	long uploadThroughput,
	Nullable<ConnectionType> connectionType = null
)

Parameters

offline
Type: SystemBoolean
True to emulate internet disconnection.
latency
Type: SystemInt64
Minimum latency from request sent to response headers received (ms).
downloadThroughput
Type: SystemInt64
Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.
uploadThroughput
Type: SystemInt64
Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.
connectionType (Optional)
Type: SystemNullableConnectionType
Connection type if known.

Return Value

Type: TaskDevToolsMethodResponse
returns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also