Example #1
0
            private void InternalExecute(ICommand command)
            {
                CommandCollection cmds = new CommandCollection(1);

                cmds.Add(command);

                var resultCommand = Engine.Execute(StorageEngineClient.StorageEngineDescriptor, cmds)[0];

                SetResult(command, resultCommand);
            }
Example #2
0
        private void InternalExecute(IOperation operation)
        {
            if (operations.Capacity == 0)
            {
                OperationCollection oprs = new OperationCollection(Locator, 1);
                oprs.Add(operation);

                var result = StorageEngine.Execute(oprs);
                SetResult(operations, result);

                return;
            }

            operations.Add(operation);
            if (operations.Count == operations.Capacity || operation.IsSynchronous)
            {
                Flush();
            }
        }
Example #3
0
        private void InternalExecute(ICommand command)
        {
            if (Commands.Capacity == 0)
            {
                CommandCollection commands = new CommandCollection(1);
                commands.Add(command);

                var resultCommands = StorageEngine.Execute(IndexDescriptor, commands);
                SetResult(commands, resultCommands);

                return;
            }

            Commands.Add(command);
            if (Commands.Count == Commands.Capacity || command.IsSynchronous)
            {
                Flush();
            }
        }