Example #1
0
 /// <summary>
 /// Store event in file for transmission
 /// </summary>
 /// <param name="data"></param>
 private void Store(IInsightData data)
 {
     try
     {
         _storage?.Write(data);
     }
     catch (Exception ex)
     {
         Debug.WriteLine(ex.Message);
     }
 }
Example #2
0
 public Task TrackRaw(IInsightData data)
 {
     _storage.Write(data);
     return(Task.FromResult(true));
 }
Example #3
0
 /// <summary>
 /// Saves to storage for later processing.
 /// </summary>
 /// <param name="data"></param>
 /// <returns></returns>
 public virtual async Task Record(IInsightData data)
 {
     await _storage.Write(data);
 }