Пример #1
0
        public void Flush()
        {
            if (operations.Count == 0)
            {
                return;
            }

            StorageEngine.Execute(operations);
            operations.Clear();
        }
Пример #2
0
        public void Flush()
        {
            if (operations.Count == 0)
            {
                return;
            }

            var result = StorageEngine.Execute(operations);

            SetResult(operations, result);

            operations.Clear();
        }
Пример #3
0
        public void Flush()
        {
            lock (SyncRoot)
            {
                if (operations.Count == 0)
                {
                    return;
                }

                Tree.Execute(operations);

                operations.Clear();
            }
        }