GetAllShard() public méthode

Get all shards stored in the Cedar database
public GetAllShard ( ) : IEnumerable
Résultat IEnumerable
Exemple #1
0
        /// <summary>
        /// Get all the shards
        /// </summary>
        /// <returns></returns>
        public List<Shard> GetAllShard()
        {
            var shardRepository = new ShardRepository();

            IEnumerable<Shard> shardList = shardRepository.GetAllShard();

            return shardList.ToList();
        }
Exemple #2
0
 /// <summary>
 /// Get all the shards of a given application
 /// </summary>
 /// <param name="appName"></param>
 /// <returns></returns>
 public List<Shard> GetAllShardByAppname(string appName)
 {
     var shardRepository = new ShardRepository();
     return shardRepository.GetAllShard(appName).ToList();
 }