protected override void WriteEntry(string key, TraceEntry entry) { if (!_storage.ContainsKey(key)) { _storage[key] = new List<TraceEntry>(); } _storage[key].Add(entry); }
protected override void WriteEntry(string key, TraceEntry entry) { var path = GetCommandStatePath(key); File.AppendAllText(path, JsonConvert.SerializeObject(entry) + ","); }