private ICommand GetXIndexDescriptor(XTable table, ICommand command) { XTableDescriptorGetCommand cmd = (XTableDescriptorGetCommand)command; cmd.Descriptor = table.Descriptor; return(new XTableDescriptorGetCommand(cmd.Descriptor)); }
private void GetDescriptor() { XTableDescriptorGetCommand command = new XTableDescriptorGetCommand(this.Descriptor); CommandCollection collection = new CommandCollection(1); collection.Add(command); collection = StorageEngine.Execute(this.Descriptor, collection); XTableDescriptorGetCommand resultCommand = (XTableDescriptorGetCommand)collection[0]; this.Descriptor = resultCommand.Descriptor; }
/// <summary> /// Updates the local descriptor with the changes from the remote /// and retrieves up to date descriptor from the local server. /// </summary> private void UpdateDescriptor() { ICommand command = null; CommandCollection collection = new CommandCollection(1); // Set the local descriptor command = new XTableDescriptorSetCommand(this.Descriptor); collection.Add(command); StorageEngine.Execute(this.Descriptor, collection); // Get the local descriptor command = new XTableDescriptorGetCommand(this.Descriptor); collection.Clear(); collection.Add(command); collection = StorageEngine.Execute(this.Descriptor, collection); XTableDescriptorGetCommand resultCommand = (XTableDescriptorGetCommand)collection[0]; this.Descriptor = resultCommand.Descriptor; }