예제 #1
0
        internal void reopenTable <tRow>(object cookie) where tRow : new()
        {
            TableInSession sessions = (TableInSession)cookie;

            TypeSerializer ser = this.m_serializer.FindSerializerForType(typeof(tRow));

            lock ( syncRoot )
            {
                foreach (SerializerSession s in m_allSessions)
                {
                    s.reopenTable <tRow>(sessions.lookup(s));
                }
            }
        }
예제 #2
0
        internal object closeTable <tRow>(SerializerSession thisSession) where tRow : new()
        {
            TableInSession res = new TableInSession();

            lock ( syncRoot )
            {
                foreach (SerializerSession sess in m_allSessions)
                {
                    if (sess == thisSession)
                    {
                        continue;
                    }
                    res.add(sess, sess.closeTable <tRow>());
                }
            }
            return(res);
        }