Esempio n. 1
0
 /// <summary>
 /// Emulates network with the given configuration for the session.
 /// </summary>
 /// <param name="options"></param>
 public void EnableNetworkEmulation(EnableNetworkEmulationOptions options)
 {
     BridgeConnector.Socket.Emit("webContents-session-enableNetworkEmulation", Id, JObject.FromObject(options, _jsonSerializer));
 }
Esempio n. 2
0
 /// <summary>
 /// Emulates network with the given configuration for the session.
 /// </summary>
 /// <param name="options"></param>
 public void EnableNetworkEmulation(EnableNetworkEmulationOptions options)
 {
     BridgeConnector.Emit("webContents-session-enableNetworkEmulation", Id, options);
 }