Click or drag to resize

NetworkClientEmulateNetworkConditionsAsync Method

Version 94.4.20
Activates emulation of network conditions.

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

Parameters

offline
Type: SystemBoolean
True to emulate internet disconnection.
latency
Type: SystemDouble
Minimum latency from request sent to response headers received (ms).
downloadThroughput
Type: SystemDouble
Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.
uploadThroughput
Type: SystemDouble
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