/// <summary> /// Creates a new circuit within the tor service, and allow tor to select the routers. /// </summary> /// <returns><c>true</c> if the circuit is created successfully; otherwise, <c>false</c>.</returns> public bool CreateCircuit() { CreateCircuitCommand command = new CreateCircuitCommand(); CreateCircuitResponse response = command.Dispatch(client); return(response.Success && response.CircuitID >= 0); }
/// <summary> /// Creates a new circuit within the tor service comprised of a series of specified routers. /// </summary> /// <returns><c>true</c> if the circuit is created successfully; otherwise, <c>false</c>.</returns> public bool CreateCircuit(params string[] routers) { CreateCircuitCommand command = new CreateCircuitCommand(routers); CreateCircuitResponse response = command.Dispatch(client); return(response.Success && response.CircuitID >= 0); }