Пример #1
0
 /// <summary>
 /// Tracks an event with custom value
 /// </summary>
 /// <param name="EventCategory">
 /// The event category
 /// </param>
 /// <param name="EventName">
 /// The event name
 /// </param>
 /// <param name="EventValue">
 /// The custom value
 /// </param>
 public void TrackEventValue(string EventCategory, string EventName, string EventValue)
 {
     lock (ObjectLock)
     {
         if (Started)
         {
             CheckApplicationCorrectness();
             var json = new EventValueJson(EventCategory, EventName, EventValue, GetFlowNumber());
             JSON.Add(JsonBuilder.GetJsonFromHashTable(json.GetJsonHashTable()));
         }
     }
 }
Пример #2
0
 /// <summary>
 /// Tracks an event with custom value
 /// </summary>
 /// <param name="eventCategory">
 /// The event category
 /// </param>
 /// <param name="eventName">
 /// The event name
 /// </param>
 /// <param name="eventValue">
 /// The custom value
 /// </param>
 public void TrackEventValue(string eventCategory, string eventName, string eventValue)
 {
     lock (_objectLock)
     {
         if (Started)
         {
             CheckIfEnabled();
             var json = new EventValueJson(_sessionGUID, eventCategory, eventName, eventValue, GetFlowNumber());
             _json.Add(JsonBuilder.GetJsonFromHashTable(json.GetJsonHashTable()));
         }
     }
 }