Ejemplo n.º 1
0
 public virtual void PerfCounter(int counterId, long time, double value)
 {
     using (var tx = m_statelessSession.BeginTransaction())
     {
         var cv = new CounterValue()
         {
             CounterId = counterId,
             Time      = time,
             Value     = value
         };
         m_statelessSession.Insert(cv);
         tx.Commit();
     }
 }
Ejemplo n.º 2
0
		public virtual void PerfCounter(int counterId, long time, double value)
		{
			using(var tx = m_statelessSession.BeginTransaction())
			{
				var cv = new CounterValue()
				{
					CounterId = counterId,
					Time = time,
					Value = value
				};
				m_statelessSession.Insert(cv);
				tx.Commit();
			}
		}