public void add(string err, level_type level = level_type.error) { lock (this) { errors_.Add(new Tuple <string, level_type, DateTime>(err, level, DateTime.Now.AddMilliseconds(EXPIRE_MS))); update_list(); } }
public void add(string err, level_type level = level_type.error) { lock (this) { errors_.Add(new Tuple<string,level_type,DateTime>(err,level, DateTime.Now.AddMilliseconds(EXPIRE_MS)) ); update_list(); } }