/// <summary> /// Generate <paramref name="quantity" /> unique identifiers /// They are guaranteed to be unique but they are not necessary in a contiguous range /// </summary> /// <param name="generatorName">name of the generator</param> /// <param name="quantity">number of unique ids to generate</param> public int[] GenerateUniqueIds(string generatorName, int quantity) { if (quantity == 0) { throw new CacheException("When generating unique ids quantity must be at least 1"); } return(Client.GenerateUniqueIds(generatorName, quantity)); }