/// <summary> /// Connect to a Hansoft Server/Database with parameters specified in a preceding call to Intialize and /// create an Sdk session (retrieved through the Session property). The session will make change call backs /// as specified by the parameters to this function. /// </summary> /// <param name="callbackHandler">Subclass of HPMSdkCallbacks that specifies your callback handlers</param> /// <param name="callbackSemaphore">Semaphore that will be Released/Signaled when you need to call SessionProcess to process callbacks</param> public void Connect(HPMSdkCallbacks callbackHandler, Semaphore callbackSemaphore) { if (hpmSession == null) { this.callbackHandler = callbackHandler; this.callbackSemaphore = callbackSemaphore; Connect(); } }
/// <summary> /// Connect to a Hansoft Server/Database with parameters specified in a preceding call to Intialize and /// create an Sdk session (retrieved through the Session property). The session will make change call backs /// as specified by the parameters to this function. /// </summary> /// <param name="callbackHandler">Subclass of HPMSdkCallbacks that specifies your callback handlers</param> /// <param name="callbackSemaphore">Semaphore that will be Released/Signaled when you need to call SessionProcess to process callbacks</param> /// <returns>True if the session could be created or one already exists, False otherwise.</returns> public bool Connect(HPMSdkCallbacks callbackHandler, Semaphore callbackSemaphore) { if (hpmSession == null) { this.callbackHandler = callbackHandler; this.callbackSemaphore = callbackSemaphore; return(Connect()); } else { return(true); } }
/// <summary> /// Connect to a Hansoft Server/Database with parameters specified in a preceding call to Intialize and /// create an Sdk session (retrieved through the Session property). The session will make change call backs /// as specified by the parameters to this function. /// </summary> /// <param name="callbackHandler">Subclass of HPMSdkCallbacks that specifies your callback handlers</param> /// <param name="callbackSemaphore">Semaphore that will be Released/Signaled when you need to call SessionProcess to process callbacks</param> /// <returns>True if the session could be created or one already exists, False otherwise.</returns> public bool Connect(HPMSdkCallbacks callbackHandler, Semaphore callbackSemaphore) { if (hpmSession == null) { this.callbackHandler = callbackHandler; this.callbackSemaphore = callbackSemaphore; return Connect(); } else return true; }