private void InternalExecute(ICommand command) { CommandCollection cmds = new CommandCollection(1); cmds.Add(command); var resultCommand = Engine.Execute(StorageEngineClient.StorageEngineDescriptor, cmds)[0]; SetResult(command, resultCommand); }
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(); } }