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