Exemplo n.º 1
0
        public Task FlushAsync()
        {
            Action flushAction = () =>
            {
                LogEntryEventArgs args;
                while (_eventQueue.TryDequeue(out args))
                {
                    LogEntryCollection.AddLast(new LogEntryEventArgsViewModel(args));
                }
            };

            return(_asyncUiThreadRunner.Invoke(flushAction));
        }