public static bool ConnectThriftSocketSession(string hostName, int serverPort, bool autoClose, float timeout) { CheckAndCloseExistingSession(); _defaultSession = CreateSessionObject(); return _defaultSession.ConnectThriftSocketSession(true, hostName, serverPort, autoClose, timeout); }
public static bool ConnectSessionSyncUsingThriftSocket( string hostName, int serverPort, bool autoClose, float timeout, bool logError) { if (_defaultSession == null) { RecreateDefaultSessionData(); } return _defaultSession.ConnectThriftSocketSession( true, hostName, serverPort, autoClose, timeout, logError, false); }