Example #1
0
 public void AddAsync(LogBotEntry entry, Dispatcher uiDispatcher)
 {
     uiDispatcher.BeginInvoke(new Action(() =>
     {
         LogEntries.Add(entry);
     })).Wait();
 }
Example #2
0
 public void Add(LogBotEntry entry)
 {
     LogEntries.Add(entry);
     OnNewEntry?.Invoke(this, entry);
 }