/// <summary>Connects to the Glacier2 router using the associated SSL credentials. /// /// Once the connection is established, SesssionCallback.connected is called on the callback object; upon /// failure, SessionCallback.connectFailed is called with the exception.</summary> /// <returns>The connected session.</returns> public SessionHelper Connect() { lock (this) { var session = new SessionHelper(_callback, GetRouterFinderStr(), _useCallbacks, CreateProperties(), _logger, _observer, _threadStart, _threadStop, _typeIdNamespaces); session.Connect(_context); return(session); } }
connect(string username, string password) { lock (this) { SessionHelper session = new SessionHelper(_callback, getRouterFinderStr(), _useCallbacks, CreateProperties(), _logger, _observer, _threadStart, _threadStop, _typeIdNamespaces); session.Connect(username, password, _context); return(session); } }
connect() { lock (this) { SessionHelper session = new SessionHelper(_callback, getRouterFinderStr(), _useCallbacks, CreateProperties(), _compactIdResolver, _dispatcher, _logger, _observer, _threadStart, _threadStop, _typeIdNamespaces); session.Connect(_context); return(session); } }