NetworkClientEmulateNetworkConditionsAsync Method |
Version 107.1.120
Activates emulation of network conditions.
Namespace:
CefSharp.DevTools.Network
Assembly:
CefSharp (in CefSharp.dll) Version: 107.1.120.0 (107.1.120.0)
Syntax public Task<DevToolsMethodResponse> EmulateNetworkConditionsAsync(
bool offline,
double latency,
double downloadThroughput,
double uploadThroughput,
ConnectionType? connectionType = null
)
public:
Task<DevToolsMethodResponse^>^ EmulateNetworkConditionsAsync(
bool offline,
double latency,
double downloadThroughput,
double uploadThroughput,
Nullable<ConnectionType> connectionType = nullptr
)
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:
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also