Exemplo n.º 1
0
        private Task SaveCheckpoints()
        {
            var tasks = new List <Task <bool> >();

            foreach (var indexer in Indexers)
            {
                indexer.Checkpoint.BlockLocator = indexer.Tip.GetLocator();
                tasks.Add(_checkpointStore.SaveCheckpointAsync(indexer.Checkpoint));
            }

            return(Task.WhenAll(tasks.ToArray()));
        }