public Accounter(Instance factory, MarkerBool marker, Settings config) { _instance = factory; _items = new ConcurrentQueue <SessionData>(); _marker = marker; Config = config; RunOnStop = true; // to save cached events }
bool LogOnce(MarkerBool m, string key, Action log) { if (!m.Is(key)) { log(); m.Set(key, true); } return(true); }