public virtual void GarbageCollection(int generation, int function, long time)
        {
            using (var tx = m_statelessSession.BeginTransaction())
            {
                var gc = new GarbageCollection()
                {
                    Generation = generation,
                    FunctionId = function,
                    Time       = time
                };
                m_statelessSession.Insert(gc);
                tx.Commit();
            }

            Flush();
        }
Exemple #2
0
		public virtual void GarbageCollection(int generation, int function, long time)
		{
			using(var tx = m_statelessSession.BeginTransaction())
			{
				var gc = new GarbageCollection()
				{
					Generation = generation,
					FunctionId = function,
					Time = time
				};
				m_statelessSession.Insert(gc);
				tx.Commit();
			}

			Flush();
		}