Exemple #1
0
        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())));
        }
Exemple #2
0
        public async Task Load(IEnumerable <StreamInfo> streams)
        {
            All = await _logProvider.LoadAsync(streams);

            Current = await Task.Factory.StartNew(() => LogResult.Build(All.Entries));
        }
Exemple #3
0
 public async Task Filter(IEvaluable <LogEntry> filter) => Current = await _logFilterEngine.FilterAsync(All, filter);