Click or drag to resize

NetworkClient.EmulateNetworkConditionsAsync Method

Version 98.1.210
Activates emulation of network conditions.

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

Parameters

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

Return Value

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