Esempio n. 1
0
            public async Task InterceptAsync(string persistenceId, SnapshotSelectionCriteria criteria)
            {
                var result = await _predicate(persistenceId, criteria);

                if ((_negate && !result) || (!_negate && result))
                {
                    await _next.InterceptAsync(persistenceId, criteria);
                }
            }
Esempio n. 2
0
            public async Task InterceptAsync(string persistenceId, SnapshotSelectionCriteria criteria)
            {
                await Task.Delay(_delay);

                await _next.InterceptAsync(persistenceId, criteria);
            }