private ICommand StorageEngineExist(ICommand command) { StorageEngineExistsCommand cmd = (StorageEngineExistsCommand)command; bool exist = StorageEngine.Exists(cmd.Name); return(new StorageEngineExistsCommand(exist, cmd.Name)); }
public bool Exists(string name) { var cmd = new StorageEngineExistsCommand(name); InternalExecute(cmd); return(cmd.Exist); }