Пример #1
0
 /// <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);
     }
 }
Пример #2
0
 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);
     }
 }
Пример #3
0
 connect()
 {
     lock (this)
     {
         SessionHelper session = new SessionHelper(_callback,
                                                   getRouterFinderStr(),
                                                   _useCallbacks,
                                                   CreateProperties(),
                                                   _compactIdResolver,
                                                   _dispatcher,
                                                   _logger,
                                                   _observer,
                                                   _threadStart,
                                                   _threadStop,
                                                   _typeIdNamespaces);
         session.Connect(_context);
         return(session);
     }
 }