public async Task <LogResult> FilterAsync(AnalogLog log, IEvaluable <LogEntry> filter) { var logs = log != null ? await log.Entries.FilterAsync(filter) : Enumerable.Empty <LogEntry>(); return(await Task.Factory.StartNew(() => LogResult.Build(logs.ToList()))); }
public async Task Load(IEnumerable <StreamInfo> streams) { All = await _logProvider.LoadAsync(streams); Current = await Task.Factory.StartNew(() => LogResult.Build(All.Entries)); }
public async Task Filter(IEvaluable <LogEntry> filter) => Current = await _logFilterEngine.FilterAsync(All, filter);