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

            Current = await Task.Factory.StartNew(() => LogResult.Build(All.Entries));
        }