NetworkClientEmulateNetworkConditionsAsync Method |
Version 112.3.0
Activates emulation of network conditions.
Namespace:
CefSharp.DevTools.Network
Assembly:
CefSharp.Core (in CefSharp.Core.dll) Version: 112.3.0.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