/// <summary>
 /// Tracks custom data
 /// </summary>
 /// <param name="CustomDataName">
 /// The custom data name
 /// </param>
 /// <param name="CustomDataValue">
 /// The custom data value
 /// </param>
 public void TrackCustomData(string CustomDataName, string CustomDataValue)
 {
     lock (ObjectLock)
     {
         if (Started)
         {
             CheckApplicationCorrectness();
             var json = new CustomDataJson(CustomDataName, CustomDataValue, GetFlowNumber());
             JSON.Add(JsonBuilder.GetJsonFromHashTable(json.GetJsonHashTable()));
         }
     }
 }
Exemple #2
0
 /// <summary>
 /// Tracks custom data
 /// </summary>
 /// <param name="customDataName">
 /// The custom data name
 /// </param>
 /// <param name="customDataValue">
 /// The custom data value
 /// </param>
 public void TrackCustomData(string customDataName, string customDataValue)
 {
     lock (_objectLock)
     {
         if (Started)
         {
             CheckIfEnabled();
             var json = new CustomDataJson(_sessionGUID, customDataName, customDataValue, GetFlowNumber());
             _json.Add(JsonBuilder.GetJsonFromHashTable(json.GetJsonHashTable()));
         }
     }
 }