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