Ejemplo n.º 1
0
 public void AddEvent(string Key, int Count)
 {
     Event newEvent = new Event()
     {
         key = Key,
         count = Count
     };
     EventQueue.Enqueue(newEvent);
     eventCount++;
 }
Ejemplo n.º 2
0
 //count defaults to 1 internally
 public void AddEvent(string Key, double Sum)
 {
     Event newEvent = new Event()
     {
         key = Key,
         count = 1,
         sum = Sum
     };
     EventQueue.Enqueue(newEvent);
     eventCount++;
 }
Ejemplo n.º 3
0
 public int SaveItem(Event item)
 {
     lock (locker)
     {
         if (item.ID != 0)
         {
             database.Update(item);
             return item.ID;
         }
         else
         {
             return database.Insert(item);
         }
     }
 }
Ejemplo n.º 4
0
 //count defaults to 1 internally
 public void AddEvent(string Key, Dictionary<String, String> Segmentation)
 {
     Event newEvent = new Event()
     {
         key = Key,
         count = 1,
         segmentation = Segmentation
     };
     EventQueue.Enqueue(newEvent);
     eventCount++;
 }