private void DoSetOption(string option, string value) { if (!m_client.SetOption(option, value)) { throw new Exception(String.Format("failed to set option '{0}' with value '{1}'", option, value)); } }
private void DoSetOption(string option, string value) { NativeMethods.EddieLibraryResult result = openVPNClient.SetOption(option, value); if (result.code != NativeMethods.ResultCode.SUCCESS) { string errMsg = String.Format("OpenVPNTunnel::DoSetOption(): Failed to set option '{0}' with value '{1}'. {2}", option, value, result.description); EddieLogger.Error(errMsg); throw new Exception(errMsg); } }