/// <summary> /// When the connector has been initialized, this method will establish a connection to the domino server using the provided credentials /// <para>Sets isConnected property</para> /// </summary> /// <returns>boolean</returns> public bool Connect() { // only try to connect if initialized - all info needed is available if (_isInitialized) { ResetReturn(); // reset the error vars - will be populated by Requestor Request = new Requestor(this); // creates connection to domino and tries to login with supplied credentials if (Request.Initialize()) { _isConnected = true; return(true); } else { //unable to connect - hasError set to true & returnmessages added _isConnected = false; return(false); } } else { //hasError is set to true (New()) and returnmessage contains reason _isConnected = false; return(false); } }