Exemplo n.º 1
0
	public static bool ConnectThriftSocketSession(string hostName, int serverPort, bool autoClose, float timeout)
	{
	    CheckAndCloseExistingSession();

	    _defaultSession = CreateSessionObject();
	    return _defaultSession.ConnectThriftSocketSession(true, hostName, serverPort, autoClose, timeout);
	}
Exemplo n.º 2
0
	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);
	}