示例#1
0
        protected override void WriteEntry(string key, TraceEntry entry)
        {
            if (!_storage.ContainsKey(key))
            {
                _storage[key] = new List<TraceEntry>();
            }

            _storage[key].Add(entry);
        }
示例#2
0
 protected override void WriteEntry(string key, TraceEntry entry)
 {
     var path = GetCommandStatePath(key);
     File.AppendAllText(path, JsonConvert.SerializeObject(entry) + ",");
 }