Ejemplo n.º 1
0
 /// <summary>
 /// Tracks an event related to time and intervals
 /// </summary>
 /// <param name="EventCategory">
 /// The event category
 /// </param>
 /// <param name="EventName">
 /// The event name
 /// </param>
 /// <param name="EventTime">
 /// The event duration 
 /// </param>
 /// <param name="Completed">
 /// True if the event was completed.
 /// </param>
 public void TrackEventPeriod(string EventCategory, string EventName, int EventTime, bool Completed)
 {
     lock (ObjectLock)
     {
         if (Started)
         {
             CheckApplicationCorrectness();
             var json = new EventPeriodJson(EventCategory, EventName, GetFlowNumber(), EventTime, Completed);
             JSON.Add(JsonBuilder.GetJsonFromHashTable(json.GetJsonHashTable()));
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Tracks an event related to time and intervals
 /// </summary>
 /// <param name="eventCategory">
 /// The event category
 /// </param>
 /// <param name="eventName">
 /// The event name
 /// </param>
 /// <param name="eventTime">
 /// The event duration 
 /// </param>
 /// <param name="completed">
 /// True if the event was completed.
 /// </param>
 public void TrackEventPeriod(string eventCategory, string eventName, int eventTime, bool completed)
 {
     lock (_objectLock)
     {
         if (Started)
         {
             CheckIfEnabled();
             var json = new EventPeriodJson(_sessionGUID, eventCategory, eventName, GetFlowNumber(), eventTime, completed);
             _json.Add(JsonBuilder.GetJsonFromHashTable(json.GetJsonHashTable()));
         }
     }
 }