/// <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); } }
public Task TrackRaw(IInsightData data) { _storage.Write(data); return(Task.FromResult(true)); }
/// <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); }