Exemple #1
0
 /// <summary>
 /// Get the state on each connection (XWB SERIALIZE), set the MySession.Sessions state info, return the connections to the pool
 /// </summary>
 /// <param name="session"></param>
 internal void returnConnections(MySession session)
 {
     if (session.ConnectionSet == null || session.ConnectionSet.Count == 0)
     {
         return;
     }
     foreach (string key in session.ConnectionSet.Connections.Keys)
     {
         AbstractConnection cxn = session.ConnectionSet.getConnection(key);
         if (cxn == null) // if no connection was checked out for this key
         {
             continue;
         }
         session.Sessions.setState(key, new VistaState(cxn.getState()));
         ConnectionPools.getInstance().checkIn(cxn);
     }
 }